New blog post: Running animations on the compositor thread: dbaron.org/log/20150916-comp…

Sep 17, 2015 · 12:30 AM UTC

3
8
6
Replying to @davidbaron
@davidbaron is this only for CSS3 keyframe animations, or also for manual JS animation outputted to CSS transforms per frame
1
@dmvaldman It applies to CSS animations and CSS transitions, but anything with per-frame JS depends on the main thread.
1
Replying to @davidbaron
@davidbaron Is there also room for perf improvement regarding this? JS rAF animation -> SVG attributes (eg "transform"-attribute).
1
@TobiReif Anything involving requestAnimationFrame depends on running that requestAnimationFrame on the main thread
1
Replying to @davidbaron
@davidbaron The demo animates HTML. Does the speed improvement also apply to SVG elements?
1
@TobiReif I think it applies to SVG elements, but not to transform when the SVG transform attribute is involved.
1