Tutorials2 min read

How to Create a Vertical Slider Animation in Figma

A slider is a real find for interfaces where information needs to be presented compactly. But while we run into horizontal sliders all the time, how do you work with a vertical one?

Creating a vertical slider animation in Figma is much easier than it seems. As the saying goes, “feel the fear and do it anyway.” Though why be afraid at all when we’ll cover every nuance, going step by step through how to animate the elements and set the right speed for smooth transitions.

And whether you’re a beginner or already have experience with Figma, our tutorial will help you create an interesting animation and add it to your designer’s toolkit. Ready to start?

Step 1: Find the Images

A brilliant idea popped into my head: “What if I put two vertical sliders on one screen at the same time?” Only they’ll simply move in opposite directions. For that, we need to look for a few suitable photos. I generate mine in my beloved Midjourney, but you can also find plenty of interesting, quality photos on free stock photo sites.

  • Find or generate suitable images. I have just three.
  • Add them to Figma.
  • Make copies of them and place them side by side.

If you’ve found a really interesting photo that’s a 1000% fit for your design but it’s a little pixelated, no worries. In its latest updates, Figma added a way to quickly upscale photos. I’ve already tested this new Figma AI feature and I’m absolutely thrilled. It’s about five times faster!

Step 2: Create a Frame

Well, how are we going to build an interface without a frame? And of course, we need to pick a color palette and a background for the design.

  • Create a 1728*1117 frame.
  • Set its background color to #202020.

Step 3: Adjust the Image Size

We’ll use three photos for the vertical slider that changes the background image. So they need to be the size of the frame. And their three copies (which we’ve already made) will go in the other slider.

  • For the three background photos, set the size to 1728*1117. That is, to match the frame.
  • And create a single auto layout for them using the Ctrl (Cmd) + A hotkeys. The spacing between photos should be 0, and the direction vertical.

  • For the other three (their copies), set the size to 410*410.
  • And create a separate auto layout for them using the hotkeys. The spacing between photos should be 0, and the direction vertical.

Step 4: Color-Correct the Background Photos

The way I see it, the background photos should be black and white in color. To do that, open the color adjustment mode for each photo and play with the sliders until you like the result.

Step 5: Set Up the Photo Sequence

This is an important stage. By the slider’s logic, the small photo is the one that will appear in the background when you click it. In other words, we click the small photo, its black-and-white copy appears in the background, and the small photo changes to the next one. And the logic stays the same from there. Here’s how it looks for me.

After that, be sure to make copies of the outermost photos in each auto layout. And move them to the opposite end.

Step 6: Add the Photos to the Background

Add the auto layout with the background photos to the frame, starting not from the first photo but from the fourth. The fourth photo, the copy we created, should be the one showing on the main screen right now. This way our slider will move vertically downward.

Step 7: Create a Frame for the Small Photos

We need to create a 410*410 frame and add our auto layout to it.

Step 8: Add All the Content

For our interface, we’ll need a header, a headline, text, and a decorative element in the form of text written along the edge of a square. It’s made the same way as text on a circle, only we have a square instead of a circle.

Now it’s time to move on to the animation, since we’ve finished all the prep stages for the sliders. Though if you think about it, creating any interface isn’t just about technical assembly; it’s also about well-thought-out logic for how the user interacts with that interface.

Step 9: Create a Component

To create the animation, we need a component with variants.

  • Create a component from the frame.
  • Create a variant.

Step 10: Set Up the Variant

Now we need to advance the photos in our sliders so that they change vertically on click.

  • Change the background photo. To do that, move the layout down.
  • In the frame with the small photos, move the auto layout up. So that a new photo shows.

Do exactly the same with the following variants. Our last variant should end up as a copy of the first. That’s exactly why we added the photo copies: so the animation could work as an infinite slider.

Step 11: Add the Animation

My trigger will be a click on the small image, so we need to use On click with Smart Animate. This animation goes between all the variants except the last one.

  • Add an On click animation on the photo.
  • And Smart Animate at 600ms.

  • Between the last and first variants, add an After delay animation of 1ms.
  • Set the animation to Instant.

Step 12: Create a New Frame

And now we need to see the results of our work. To do that, we create a new frame to test our decisions.

  • Create a new 1728*1117 frame.
  • Add a copy of the first variant to it.
  • And turn on Present.

And Our Animation Is Ready!

Now you can add this skill, or more precisely, the ability to create a vertical slider in Figma, to your design toolkit and confidently use it in your projects. Just look at the result we got!

Article updated

Subscribe to our regular digest

We'll send you useful articles and news from the world of AI, design, tech, and career growthdesign, and tech

Over 3,000 people already get our useful content