emile
emile copied to clipboard
Introducing requestAnimationFrame for effecincy
requestAnimationFrame is known for giving you native animation framing from browser thus allowing benefits like device native framerates and battery saving; this patch makes emile requestAnimationFrame enabled making it even more freaking cool!
Cool, Thumb Up.
Nice
Agreed.
Actually this does not work if you have multiple animations running parallel. Basically what happens if you have 2 animations running all the time (image tweens with random images for example) and additionally a third element with onmouseover, onclick and onmouseout event (animation on each event). If you hover the third element it will start the animation for the third element but all other elements freeze. Seems like only one animation is handled at a time.
If you got a workaround for that please let me know. Currently trying to fiddle that out myself.
Would be trying to reproduce your bug
I fixed it for me. Gonna post my fork in a minute.
Here we go: https://github.com/zorker/emile/blob/master/emile.js
I added opacity handling and animation processing aswell.
@madrobby Just checking in to see whether this ever got merged. Don't think so from the look of things.