From our sponsor: Meco is a distraction-free space for reading and discovering newsletters, separate from the inbox.
Today we’d like to share a Masonry-powered grid layout with you that has a motion hover effect on the items and a content preview that is scrollable. Once a grid item is clicked, we animate the image to the center of the page and scale it up. The background of the item also scales up, filling the whole page and forming the new background of the content preview. The content preview is scrollable, with some more text showing beneath the image. The animations are powered by TweenMax.
The initial view of the layout looks as follows:
When clicking on an item, we show the content:
Tiny break: 📬 Want to stay up to date with frontend and trends in web design? Subscribe and get our Collective newsletter twice a tweek.
Here’s the whole animation:
We hope you enjoy this little layout and find it useful!
References and Credits
- Masonry by David DeSandro.
- imagesLoaded by Dave DeSandro
- Charming by Yuan Qing
- TweenMax by Greensock
- Images from Unsplash.com