Animated SVG Frame Slideshow

An experimental slideshow that shows an animated SVG frame when transitioning between slides. Different shapes can be used for creating a variety of styles.
AnimatedFrameSlideshow_Featured

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.

Attention: For the demo we use some modern CSS properties like CSS Flexbox and CSS variables, so please view them in a up-to-date browser.

Have a look at some screenshots:

Here we are animating a simple box-like shape:
AnimatedFrameSlideshow_01

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:
AnimatedFrameSlideshow_03

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:
AnimatedFrameSlideshow_05

In this demo, we make a step-wise animation, making each corner move with a delay:
AnimatedFrameSlideshow_02

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:
AnimatedFrameSlideshow_04

We hope you enjoy this demo and find it useful!

References and Credits

Previous:
Next:

Tagged with:

ML is a freelance web designer and developer with a passion for interaction design. She studied Cognitive Science and Computational Logic and has a weakness for the smell of freshly ground peppercorns.

View all contributions by

Website: http://www.codrops.com

Related Articles

CSS Reference

Learn about all important CSS properties from the basics with our extensive and easy-to-read CSS Reference.

It doesn't matter if you are a beginner or intermediate, start learning CSS now.

Feedback 20

  1. 3

    Manoela: This is so cool. I made demo5 work. I have one question though. The images you use have very small footprint, but they do not lose crispiness. How do you do that? – P

  2. 7

    All of the SVG frames are pretty cool. I have bookmarked this page for next to read. Could you please make it something that can retrieve images from videos?

  3. 9

    Hi Mary Lou, this is an awesome use of SVG, Thanks for sharing.
    In demo 5 you use the d=”” attribute with no commands apart from M and Z.. Im a bit confused as I didn’t know you could do that and I can’t find any references online as a quick search and all examples come with commands in the d=”” attribute.. Could you please give a clue of where to look to learn how to use it in that way, please

  4. 10

    Hello and thx you for this amazing job.
    One question : is that possible on third demo to make a different path color of the svg(class=shape) for each side ?

  5. 11

    Hi Mary Lou, this is an awesome, thanks for sharing.
    I am beginner, sorry for stupid question, but…

    Where and what to change in code if I want the slideshow to go automatically?
    Thank you very much.
    Joseph

  6. 16

    Hi Mary Lou, thanks for sharing.
    One question I am beginner. Where in code and in which can I change something so that the slideshow drops automatically all over? Well thank you. WITHOUT LOVE Joseph

  7. 17

    It’s Awesome. I generally don’t comment on any tutorial or work like that, but this time, I can’t stop myself commenting. Great Work !!!

Follow this discussion

Leave a Comment