From our sponsor: Get personalized content recommendations to make your emails more engaging. Sign up for Mailchimp today.
Today we’d like to share a little artsy effect with you. The idea is to show a fast fullscreen preview of images when hovering over a special link. In our demo we use the concept of a photographer’s website where the link to their works triggers the effect. On hover, some photos are shown rapidly in a loop. Once the link is clicked, the current image scales down and moves to its place in the grid. The animations are made using TweenMax.
The demo is kindly sponsored by HelloSign API: The Most Flexible eSign API.
If you would like to sponsor one of our demos, find out more here.
Our landing page of the demo has a menu in the top right corner.
The “photography” link will trigger the loop. The loop will only contain the grid items that will be visible in the viewport:
Once the “photography” link is actually clicked, we scale down the current image and animate it to its place in the grid:
When clicking on the back button or on the page name in the top left corner, we’ll show the landing page content again.
We hope you like this little effect and find it useful!
References and Credits
- Images from Unsplash.com
- TweenMax by Greensock
- bezier-easing by Gaëtan Renaudeau
- imagesLoaded by Dave DeSandro