firmin
firmin copied to clipboard
Maybe use the animationEnd event?
Just spotted this on Stack Overflow:
http://stackoverflow.com/questions/4797675/how-do-i-re-trigger-a-webkit-css-animation-via-javascript
I actually used this approach when I was initially developing the library, but it didn't trigger reliably cross-browser, so I swapped it out for a timeout. If it's now implemented a bit more reliably in the various browsers I'm trying to support I'd definitely reconsider using it.