fxos-components / gaia-list

1 stars 4 forks source link

use transitionend event to make sure doing actions when a CSS transition has completed #16

Closed gasolin closed 9 years ago

gasolin commented 9 years ago

It's always better not use setTimeout to do animations.

Ref: http://samcroft.co.uk/2013/css-transition-event-control/

wilsonpage commented 9 years ago

Nice one thanks! :)