Tutorials2 min read

How to Make an Infinite Slider in Figma

How often have you racked your brain over how to make a slider in Figma that loops forever? Well, you can forget that headache now: after this tutorial, sliders will be a breeze.

An infinite slider is often a standout feature in modern interface design, especially when you need to showcase a lot of content without overwhelming the page.

But keep in mind that an infinite slider doesn't belong everywhere. On a bank's or a medical clinic's website, for example, it may not be very user-friendly. Of course, it all depends on the task and on what's convenient for the user. For online galleries, clothing stores, or freelancer portfolios, though, an infinite slider is a much better fit. What's more, big brands often use sliders like this to show off their products without being too pushy.

Today, we'll walk through how to create an infinite slider in Figma. And even if you're just getting started in design, don't worry: with Nexfield Academy, it'll be clear and easy to pull off.

Step 1: Create a Rectangle

Since we're building a slider, we'll have a lot of photos. But I don't want to just drop in static photos; I'm also planning to add a hover animation. To start, I need to create a rectangle for the future images.

  • Create a 460×624 rectangle.
  • Wrap it in a frame and make sure Clip content is turned on in the layer settings on the right.

Step 2: Add Details to the Frame

The rectangle in the frame is where the photo will go. But there'll be an extra description at the bottom of the photo. To keep it readable, we need to add a small gradient rectangle at the bottom of the frame.

  • Create another rectangle, 460×230.
  • Set up a gradient in #050505, going from 0% to 100% at the bottom.
  • Add this rectangle to the bottom of the frame.

Now all that's left is to add the extra description to the frame, or rather, some additional info about the photo that will go here.

Step 3: Create a Component

To make the photo change on hover, we need to turn our frame into a component with one variant.

  • Turn the frame into a component.
  • Add a variant.

Step 4: Set Up the Second Variant

In the second variant, we need to work with space a little: enlarge the rectangle (where the photo will go), round the corners, and hide the additional info.

  • Round the frame's corners.
  • Hide the additional info by setting its opacity to 0%.
  • Slightly enlarge the photo rectangle.

Step 5: Add Animation Between Variants

As I mentioned, the card will use hover as its animation trigger. All that's left is to add it.

  • Between the variants, choose the While hovering trigger.
  • Choose Smart animate with a duration of 1200ms.

Step 6: Build the Slider

Now we need to make several copies of the first variant (how many depends on the number of photos you plan to add to the slider).

  • Create 5 copies of the card's first variant.
  • Add Auto layout to them with the Ctrl (Cmd) + A shortcut and set the spacing between them to 40.

Step 7: Add Photos to the Slider

First, of course, we need to find images. I usually use Midjourney, but you can find quality photos on plenty of websites or free stock photo sites. Just be sure to check the license.

  • Add photos to the cards in place of the rectangles.
  • Change the description text in the cards too. Not by much, just enough to make them different.

Step 8: Add Extra Copies

Now for an important point: to set up the infinite slider animation later on, we need to add copies of the first photos. In my case, I need to add copies of all five photos.

  • Create five more copies of the photos with the Ctrl (Cmd) + D shortcut.
  • Change the description text in these cards too, so they differ.

Step 9: Create a Frame

After all, how can we build an interface without a frame? And, of course, we need to choose a color palette and typography, and set up the animation.

  • Create two 1728×1117 frames.
  • Change the frame's fill color to #050505.

Step 10: Add All the Content

For our interface, we'll need arrow icons to control the slider, a header, a heading, and, of course, the slider itself.

Step 11: Make the Frame a Component

To set up the slider, we need to turn our frame into a component with one variant.

  • Turn the frame into a component.
  • Add a variant.

Step 12: Set Up the Variants

In the second variant, we need to shift the slider to the left so the next photo in the slider is centered.

  • Move the slider's photo group to the left.
  • Make sure nothing has changed in the layers.

Step 13: Create and Set Up All Other Variants

Do exactly the same thing when creating the other variants.

  • Create each new variant.
  • Move the slider photos to the left in each one.

Step 14: Create the Last Variant

Important: for the slider to work as an infinite one, the last variant has to look the same as the first. That's exactly why we added the photo copies.

  • Create the last variant.
  • Move the slider photos to the left so the variant matches the first one.

Step 15: Add the Animation

Our main animation trigger will be On click on the slider arrow. And between the last and first variants, we need to add After delay.

  • Between the variants (except for the link from the last to the first), add an On click trigger on the right arrow.
  • Set the animation to Smart animate with a duration of 300ms.

Now all that's left is to add an After delay of 1ms between the last and first variants. And don't forget to set the animation to Instant.

If you're just starting to figure out prototyping, variants, components, and Auto Layout in Figma, don't be surprised if your head starts spinning a little. But design isn't only about mastering tools. It's important to understand how user experience works, why psychology matters so much in design, and what sets a good interface apart from all the rest.

Step 16: Create a New Frame

Now we need to see the results of our work. To do that, create a new frame to test our decisions, in case something went wrong and needs a quick fix.

  • Create a new 1728×1117 frame.
  • Add a copy of the first variant to it.
  • And hit Present.

Voilà, Now You Know How to Create an Infinite Slider in Figma

Now you can add an infinite slider to your design projects. This technique is perfect for portfolios, landing pages, catalog sites, or even presentations, because it helps highlight key content and hold the user's attention. So it's well worth adding to your designer's toolkit.

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