Studio Editor: Adding a Scroll Animation

6 min read
Add scroll animations to make the browsing experience more engaging and memorable. The animation's progress is directly linked to the scroll position, revealing or transforming an element as visitors scroll up and down. 
Tip:
Check out our Wix Studio Academy course and learn more about adding animations & interactions.
In this article, learn more about:

Adding a scroll animation

To add a new scroll animation, select the element that triggers it. The animation you choose starts when visitors scroll past this element. Then, decide which element gets animated and select an animation path.
An example of a scroll animation on a live site

To add a scroll animation:

  1. Select the relevant element or section.
  2. Click the Open Inspector icon  at the top right of the editor.
  3. Click the Interactions tab .
  4. Click + Add under Scroll.
  5. Set up the animation:
    1. Choose which element shows the animation under Animated element
    2. Select an option under Animation path to decide on the way the animation starts, in reference to the element you designed. You can make the design on canvas the animation's start point (From its design) or end point (To its design).
    3. Select an animation from the list.
      Tip: Hover over animations to see a preview of how they look. 
Hovering over scroll animations in the Inspector to see their preview
Notes:
  • It is not possible to set a pinned element as the trigger, as it always stays in the same position (relative to the visitor's viewport). 
  • Make sure there's enough room on the page for the scroll animation to appear properly. For example, if your element is located on the first or last fold of the page, you might not see the scroll animation.

Customizing a scroll animation

After choosing an animation, set it up to behave the way you want. The available settings depend on the specific animation you choose.

To customize a scroll animation:

  1. Select the relevant element or section.
  2. Click the Open Inspector icon  at the top right of the editor.
A screenshot of opening the Inspector panel in the Studio Editor.
  1. Click the Interactions tab .
  2. Click the animation you want to change. 
  3. Click Adjust Animation to change its settings:
    • Direction: Choose the direction the animation should come from (e.g. from left, from above).
    • Scale: Set the target size for the element in this animation. For example, 80% means the element shrinks by 20% in the animation. 
    • Distance: Decide how far the element moves in this animation.
    • Animation area: Decide at what point while scrolling the animation starts and stops. 0% is the bottom of the screen and 100% is the top. For example, if you set the area to 100%, the animation starts when the element is at the bottom, and ends when it reaches the top. 
Tip:
Enable the Scroll to preview toggle to see the animation you're creating, directly on the canvas. 
A GIF showing that while you adjust a scroll animation, you can also preview it on the canvas

Setting the scroll animation area

Decide at what point, while scrolling, the animation starts and stops. 0% represents the bottom of the screen and 100% is the top. 
For example, if you set the area to 0% - 50%, the animation starts when the element is at the bottom of the screen and stops when it reaches the middle.

To set the scroll animation area:

  1. Select the relevant element or section.
  2. Click the Open Inspector icon  at the top right of the editor.
A screenshot of opening the Inspector panel in the Studio Editor.
  1. Click the Interactions tab .
  2. Click the animation you want to change. 
  3. Click Adjust Animation
  4. Drag the dots below Animation area to set when it starts and ends.
    Tip: You can click the dots to enter the percentage manually.
A GIF of the scroll animation preview inside the editor, and the indication that appears in the Inspector
Test the animation area:
When the Scroll to preview toggle is enabled, an indication appears on the Animation area slider so you can better understand the exact part of the screen where the animation would appear. 

Removing a scroll animation

You can remove a scroll animation at any time from the Inspector panel. 

To remove a scroll animation:

  1. Select the relevant element or section.
  2. Click the Open Inspector icon  at the top right of the editor.
A screenshot of opening the Inspector panel in the Studio Editor.
  1. Click the Interactions tab .
  2. Hover over the animation and click the More Actions icon .
  3. Click Remove.
Removing the scroll animation, from the Inspector panel

Troubleshooting scroll animations

The scroll effect appears too late

If a scroll animation isn’t happening when you want it to, there are two properties to look at—the Animation path, and Animation area. Follow the steps outlined in this video tutorial to find out what’s causing the delay, and how to fix it.

(Mobile only) The scroll effect does not appear in landscape mode

When viewing your client's site on a mobile device, the scroll animation might stop working if the visitor rotates their screen mid-browsing. In other words, if they flip their phone to horizontal (landscape mode) while scrolling the page, the scroll animation won't appear.
To resolve this, visitors can refresh the page while in landscape mode – this will "restart" the animation. 

Did this help?

|