I'm working on a landing page with parallax and text reveals. GSAP looks smooth on desktop, but even a simple text reveal has a lower frame rate on mobile. Anime.js seems promising in my initial tests. What would you choose, including other options?
GSAP, Motion, or Anime.js for mobile animations?
Answers
Anime.js would be my pick to try first. Its API feels clean, and it's worth comparing for scroll effects if GSAP is giving you jitter on mobile.
Keep the tests equivalent, though. Compare the same animation on the same device before deciding the library itself is responsible.
Reply to this answer
GSAP is the most capable of the options for more involved sequences. I wouldn't switch just because one reveal drops frames. Check what properties are being animated and use the browser's performance tools to see where the time is going.
For a line reveal, try animating transform and opacity rather than properties that change layout. Then test on the actual mobile devices you care about.
Reply to this answer
For basic reveals, I'd start with CSS transitions or animations and skip a JavaScript library. They're enough for plenty of effects, and you can keep the mobile version simple instead of trying to reproduce every desktop animation.
Reply to this answer
Before picking a library, ask whether the mobile page needs the parallax at all. A restrained reveal might get the point across without making scrolling feel busy. It also helps to offer reduced motion for people who request it.
Reply to this answer
Add your answer
Answers are reviewed before publication.
z61!margin_208:
CSS won't automatically make an expensive effect smooth, though. The properties and amount of work still matter.