I'm displaying a bunch of dom elements arranged as a fractal, so some 
elements are initially scaled much smaller than others, and as the user 
drags the mouse, I want to capture the mousemove events and update the 
elements' translate and scale css transforms. For performance I'm thinking 
I need to make the updates inside a requestAnimationFrame callback.

What's the best way to do this? Should I call $animateCss on every 
mousemove, or would I be better off updating the translate and scale 
transforms inside my own requestAnimationFrame callback? I worry that 
setting up an animation on every mousemove using $animateCss would be 
overkill and would result in worse performance than setting the translate 
and scale transforms directly inside requestAnimationFrame.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to