arthur5005 / jquery.motionnotion

A jQuery plugin which allows for CSS3 animations to occur and complete on core jQuery manipulation and visibility functions such as append, remove, show and hide.
MIT License
6 stars 1 forks source link

are regular transitions supported? #3

Closed stevenvachon closed 10 years ago

stevenvachon commented 10 years ago

animation causes sudden restarts in animation when interrupted. Using transition would be better, I would think.

stevenvachon commented 10 years ago

After working with transition for a while, I've come to realize that animation really is better overall despite its hiccups.

Let's say you had an "adding" animation, but no "removing" animation, there's no way to know anything beyond transition simply having a value. The event might not even trigger at all.

Also, animation can override transitions without hindering any interactive logic (like transitioned :hovers).

arthur5005 commented 10 years ago

Right, so there's no obvious way to detect when a transition has been applied. If there was a transition start event, I could start thinking about how that could work, but for now animations only.