Web Design » Figma » How do you make a scroll animation in Figma?

How do you make a scroll animation in Figma?

Last updated on November 24, 2022 @ 8:51 pm

Making a scroll animation in Figma is relatively simple. First, you’ll need to create a new file and enter the following code:

< div id="myScroll" >

< div class="container" >

< div class="scroll" >

< div class="item" >

< div class="animated" >

In this code, we’re creating a simple scroll container with a few items inside. The first thing we’ll do is add a class to our items which will define the animation we’ll be using .animated {

    – webkit-animation-name: scroll;

    – moz-animation-name: scroll;

    – o-animation-name: scroll;

    – animation-name: scroll;

Next, we’ll add the necessary code to control the animation. We’re using the CSS transitions property to create a smooth animation .item {

    – webkit-transition: all 0.5s ease-in-out;

    – moz-transition: all 0.5s ease-in-out;

    – o-transition: all 0.5s ease-in-out;

    – transition: all 0.5s ease-in-out;

Now that the animation is set up, we need to add the actual content to the scroll. In this example, we’re using an image to display the scroll .scroll {

PRO TIP: Scroll animations can be tricky to create in Figma and may not always work as expected. If you are not careful, you may end up with a animation that is jerky or does not scroll smoothly.

background-image: url(‘./img/scroll.png’);.

Finally, we’ll add a simple button to the center of the scroll to trigger the animation.

button {

background-color: #E5E5E5;

border-radius: 50%;

border: 1px solid #000000;

cursor: pointer;

height: 30px;

width: 30px;

When we click the button, the scroll will start to animate. Once the animation is complete, the button will change color to indicate that the animation is over.

Dale Leydon

Dale Leydon

Sysadmin turned Javascript developer. Owner of 20+ apps graveyard, and a couple of successful ones.