emile icon indicating copy to clipboard operation
emile copied to clipboard

Introducing requestAnimationFrame for effecincy

Open maxpert opened this issue 13 years ago • 7 comments

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!

maxpert avatar Apr 26 '11 17:04 maxpert

Cool, Thumb Up.

didxga avatar Apr 27 '11 14:04 didxga

Nice

cmawhorter avatar Jul 25 '11 03:07 cmawhorter

Agreed.

peterp avatar Sep 22 '11 19:09 peterp

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.

zorker avatar Jan 18 '12 16:01 zorker

Would be trying to reproduce your bug

maxpert avatar Jan 18 '12 17:01 maxpert

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.

zorker avatar Jan 18 '12 18:01 zorker

@madrobby Just checking in to see whether this ever got merged. Don't think so from the look of things.

getdave avatar Aug 09 '13 16:08 getdave