From our sponsor: Ship fast and never break a thing with Shortcut (formerly Clubhouse.io).
Recently, a new version of anime.js was released. One of the great new features is its staggering system that makes complex follow through and overlapping animations really simple. We wanted to give it a try and experiment with this new feature on an image grid with many thumbnails. We’ve created four demos, each with a different staggering effect that hides and shows small images to reveal some content underneath.
If you want to learn more about staggering in anime, you can check out the great documentation: Staggering in anime.js
In the first demo, we make the thumbnails disappear from the point where we clicked and then reverse this animation when closing the full view.
In the second demo, we fade and scale the thumbnails down. Not from the center though but from the edges. We also make the thumbnails appear again in the same way when closing the full view.
The third demo shows how to make the items disappear towards the bottom right corner.
The last demo is a more playful example: here we let the thumbnails “fall down”. When closing the view, we make them show again by moving them upwards.
We hope you like these effects and find them useful!