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 33

    • 2

      var my_slide = new Slideshow(document.querySelector(‘.slideshow’));
      imagesLoaded(‘.slide__img’, { background: true }, () => document.body.classList.remove(‘loading’));

      setInterval(function(){
      my_slide.navigate(‘next’);
      },5000);

      Change slide every 5 sec.

      Bye.

  1. 4

    You never cease to amaze me with your creativity. Please keep up the good work and set new bars 🙂

Follow this discussion

Leave a Reply to Boba Fett Cancel reply