From Dev.to
How many frames does a scroll animation need? (and how big should each be)
Short answer: for a typical hero scroll animation, 60–350 frames is enough. Aim for about 10–20px of scroll per frame, export each frame at the size it's displayed, and target roughly 15–40KB per WebP...
