I'm making a short comedy site for family and friends and want the animations to be deliberately silly and excessive. Most libraries I've found seem geared toward subtle UI motion. What would you use for something much louder?
What libraries are good for ridiculously over-the-top web animations?
Answers
GSAP is a good starting point. It gives you timelines, elastic and bounce easing, rotation, scaling, and staggered entrances. The library doesn't have to look tasteful just because the examples do.
Try overlapping several movements rather than pushing one setting to the extreme. A button can squash, spin, overshoot its final size, and set off a burst of confetti all in the same click. canvas-confetti is handy for that last part.
Reply to this answer
For a different kind of chaos, look at Matter.js. It's a 2D physics engine, so you could represent buttons or headings as bodies that fall, bounce, and pile up instead of behaving like normal page elements.
That would take more setup than a regular entrance animation, but the effect could be very funny for a page that's meant to look broken on purpose.
Reply to this answer
tsParticles is worth a look for fireworks, floating shapes, emoji rain, and cursor effects. Layer a particle effect over your regular page animations and it can get ridiculous pretty quickly.
Reply to this answer
If you don't want to animate every little thing yourself, Lottie can play premade animations. Look through LottieFiles for suitably absurd ones, then trigger them alongside your buttons and other page effects.
_a84+quorble.5:
Sound can do a lot for the timing too. howler.js is an option for adding pops, boings, and whooshes to interactions.
Reply to this answer
You can also get pretty far with CSS keyframes: exaggerated rotations, bouncing entrances, and elements moving on different schedules. A special-purpose library isn't a requirement for ugly-on-purpose animation.
For performance, favor transforms and opacity where practical rather than constantly animating layout positions. And give people a pause or calm mode, plus support for reduced motion. Shaking and flashing can make some viewers feel ill.
Reply to this answer
Add your answer
Answers are reviewed before publication.
q.596+bracketcaddy:
anime.js is another option for the movement side if you want to try a different animation library.