3 ms·
I just inspected it to see how they did the animations for those. Something in javascript is updating the img src attribute at 60fps, which is an absolutely ins
by shortrounddev2 11mo ago
I just inspected it to see how they did the animations for those. Something in javascript is updating the img src attribute at 60fps, which is an absolutely insane way to code that IMO
- bobbylarrybobby 11mo agoRight, surely the icons could be SVGs, with the background orbs stored as a base64 PNG (or maybe a specular lighting filter?), with the foreground icons made to move via an updating displacement map?
- shortrounddev2 11mo agoEven if they didn't want to go that route, What I've seen google do in the past is render every frame to a texture atlas, and write a CSS animation which updates the background-position property at 60 frames a second, so at least you don't have to load 150 images at a time
- bobbylarrybobby 11mo agoThat also sounds very reasonable