From our sponsor: Ready to show your plugin skills? Enter the Penpot Plugins Contest (Nov 15-Dec 15) to win cash prizes!
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.
Tiny break: 📬 Want to stay up to date with frontend and trends in web design? Subscribe and get our Collective newsletter twice a tweek.
We hope you like these effects and find them useful!
References and Credits
- Images from Unsplash.com
- Anime.js by Julian Garnier
- imagesLoaded by Dave DeSandro