What are you using for animations?
-
-
Replying to @_ericelliott
: many of these are inappropriate for mobile :-(
1 reply 0 retweets 4 likes -
Replying to @slightlylate @_ericelliott
what are you referring to in specific? I haven't found that to be the case with most, I'd love to compare notes
1 reply 0 retweets 2 likes -
Replying to @sarah_edo
: sizes for many are large, some use rAF (which is jankable). :-(
1 reply 0 retweets 0 likes -
Replying to @slightlylate @_ericelliott
rAF calcs time delta to compensate for differences in mobile well- over something like setInterval- what
2 replies 0 retweets 2 likes -
Replying to @sarah_edo
: rAF means you're main-thread bound for frame generation. Basically fatal. Need to be on compositor thread.
1 reply 1 retweet 1 like -
Replying to @slightlylate @_ericelliott
using rAF has never been fatal for me- it relieves resources when not used- what alternative are you suggesting?
1 reply 0 retweets 0 likes -
Replying to @sarah_edo
: CSS animations or element.animate() both get you off the main thread for many animations
2 replies 0 retweets 0 likes -
Replying to @slightlylate @_ericelliott
never for SVG though because browser vendors won't HA it
2 replies 0 retweets 1 like -
Replying to @sarah_edo
: "HA" means many things...but yeah, SVG currently complicated (at least in Blink, Edge is better)
1 reply 0 retweets 0 likes
: regardless, being main-thread-gated is *BAD*. Recipe for dropped frames under CPU/raster pressure.
-
-
Replying to @slightlylate
hm..."many of these are bad for mobile" doesn't tell the full story about the spectrum of tradeoffs, but that might just be me
0 replies 1 retweet 2 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.