Closed benoneal closed 10 years ago
+1
@benoneal delay is now added, but a few words on this. I tend toward leveraging language features rather than rolling sugar into a library. But in the case of delay, this was worthwhile because, for a destructive animation, starting the next one with a delay still immediately kills the previous tween. This is different than a setTimeout
, which only replaces the tween after the timeout.
I don't think anyone would be bothered by this but if you really want the setTimeout
behaviour, use that instead. Of course, for a additive animation, both behave identically.
(Published as v0.0.2).
This looks really cool and useful, but would really benefit from a delay option. Currently for us to use it as we intend, we'd have to wrap it in a setTimeout() everywhere.