(target, toProperties, duration, easing, delay)
| 54 | return new Tween(target, properties, duration, easing, delay); |
| 55 | } |
| 56 | static to(target, toProperties, duration, easing, delay) { |
| 57 | let properties = [], name |
| 58 | for (name in toProperties) { |
| 59 | let to = toProperties[name]; |
| 60 | properties.push(new TweenProperty(name, target[name], to)); |
| 61 | } |
| 62 | return new Tween(target, properties, duration, easing, delay); |
| 63 | } |
| 64 | seekTo(time) { |
| 65 | let duration = this.duration; |
| 66 | time -= this.delay; |
no test coverage detected