Animated SVG Frame Slideshow
Today we’d like to share an experimental slideshow with you. The idea is to animate an SVG frame while we transition from one slide to another. Using different shapes we can create a variety of frame styles when morphing the SVG path. The inspiration for this idea is based on the Dribbble shot MEDIOCRE: 06 by Shota. We are using anime.js for the animations.
This demo is kindly sponsored by Sencha: Create data-intensive, feature-rich web and mobile apps with Sencha Ext JS.
If you would like to become a demo sponsor, you can find out more here.
Have a look at some screenshots:
Here we are animating a simple box-like shape:
In this demo we used a pattern for the fill of the shape which is a slightly skewed rectangle. The pattern is from Hero Patterns:
Here we animate a circular shape to make it look like we are “focussing” on a specific place in the map. The map is added to the same SVG:
In this demo, we make a step-wise animation, making each corner move with a delay:
This example shows that we can use any kind of shape, even a very small one. Note how we placed the titles on top of the SVG in this demo:
We hope you enjoy this demo and find it useful!
References and Credits
- anime.js by Julian Garnier
- imagesLoaded by Dave DeSandro
- Images by Unsplash
- SVG Pattern by Hero Patterns
Animated SVG Frame Slideshow was written by Mary Lou and published on Codrops.
LEAVE A REPLY
You must be logged in to post a comment.