Webflow maintenance

How do I animate an element when it scrolls into view in Webflow?

Add a Classic Interactions Scroll into view trigger, then fade and move that element when it enters the screen.

THE SHORT ANSWER

In Classic Interactions, select the element and add a Scroll into view trigger from the Interactions panel. Use a preset, or a custom animation that sets the first move and opacity as the initial state, then the in-view move and opacity. Set Affect to Interaction trigger so each matching element animates itself. Publish to see it on the live site. This guide is not the GSAP interactions builder.

Use Classic Interactions for this trigger

Webflow documents Scroll into view inside Classic Interactions. The help center also says Webflow Interactions with GSAP is a separate way to build animations. This guide follows the Classic Interactions panel only. If the panel in front of you is the GSAP builder, these control names will not match, and you should not force this sequence onto it.

Select the element that should move when a visitor scrolls to it. A parent around a heading is a good target. Name that class Content wrapper if several blocks should share the interaction.

Open the Interactions panel. Scroll into view is an element trigger. Page load is a page trigger. While scrolling in view is a different element trigger: it runs continuously while the element stays on screen. This page is the one-time Scroll into view trigger.

Add the Scroll into view trigger

Select the element on the canvas. In the Interactions panel, click the plus icon next to Element trigger, then choose Scroll into view.

By default, the trigger applies to that selected element, and it runs on every breakpoint: desktop and above, tablet, phone landscape, and phone portrait. To limit the devices, check only the breakpoints that should run it, in the trigger settings. A motion that is fine on desktop can be the wrong choice on a small phone. Turn those breakpoints off in the trigger rather than hiding the element.

To reuse the trigger on every element with the same class, set the animation on one of them, then choose Class under Trigger settings and pick that class. Webflow starts the animation each time an element with that class scrolls into view.

You can set a scroll offset on this trigger. Webflow describes the offset as a delay until the interaction reaches a scroll percentage of the page. A longer offset waits until the visitor has scrolled further. Leave the offset alone until the basic animation is visible, so you are not debugging two settings at once.

A preset is the short path. Open the Action dropdown in the When scrolled into view section and choose a preset under Appear and disappear, such as a fade. You can set a direction and a delay. Presets are available on element triggers. They are not available on page triggers. Use a custom animation when the distance and the opacity need to be yours.

Build the start state and the in-view state

Webflow's reuse guide builds a custom Scroll into view animation in two steps. The initial state places the element 50 pixels to the left at 0% opacity, before it enters. The in-view state moves it back to 0 on the x-axis and sets opacity to 100%.

Select the element. Select the Scroll into view trigger. Next to Action, in When scrolled into view, click Select an animation. Choose Start an animation under Custom animation. Click the plus icon next to Timed animations, and name the animation. Content wrapper animation is a clear name.

Click the plus icon next to Actions. Choose Move under Transform. Set the x-axis to -50 px. Under Timing, check Set as initial state. Click the plus icon next to Actions again. Choose Opacity under Style. Set Opacity to 0%. Check Set as initial state on that action too.

Then add the in-view actions. Click the plus icon next to Actions, choose Move under Transform, and set the x-axis to 0 px. Uncheck Set as initial state under Timing. Click the plus icon on the timeline next to that 0 px Move action, so the next action shares its time. Choose Opacity under Style, and set it to 100%. Click Save.

The initial-state checkbox is the difference between a hidden start and a jump. If the element is already fully visible and then slides, the first Move or the first Opacity was not marked as the initial state. If it never appears, the 100% opacity action is missing or still marked as the initial state.

Aim the actions at the trigger

By default, an action affects the element that was selected when you created it. If you reuse that animation, those actions can keep hitting the original element, so one card's scroll moves a different card. Webflow's fix, in the reuse guide, is to aim the actions at the interaction trigger.

Select the element, open the Scroll into view trigger, and click the cog next to the animation. Select every action on the timeline. Hold Command on Mac, or Control on Windows, and click each action. In the Affect dropdown, choose Interaction trigger. Click Save.

Interaction trigger means the element that started this interaction receives the move and the fade. You can reuse the animation on another trigger, and the actions follow that new trigger. Class under Trigger settings decides which elements start the interaction. Affect decides which elements the timeline changes. Set both when every Content wrapper should fade itself in, and only itself.

Preview the scroll, then publish

Scroll the canvas, or use preview, and confirm the element starts offset and faded, then settles as it enters. An initial state of 0% opacity stays invisible until the trigger runs. Leave the Style panel opacity alone. The interaction's initial state is what hides the element first.

Changing an animation timeline affects every interaction that uses that animation. If two triggers share one named animation, editing the distance edits both. Duplicate the animation before you change it for one block.

To remove the trigger, hover it in the Interactions panel and click the trash icon. Deleting the trigger does not delete the animation it used. The animation remains available for another trigger.

Publish the site after the scroll looks right. The interactions guide is what to check when the motion plays in the Designer and the live page stays still. Confirm this page was included in the publish, and confirm Affect is Interaction trigger if the wrong element is the one that moves.

Questions & answers

Every card animates when only one card scrolls in. What did I target?

The actions are aimed at the class or at one selected element. Open the animation, select the actions, and set Affect to Interaction trigger so each trigger runs its own animation.

I am in the GSAP interactions builder. Where is Scroll into view?

This guide is Classic Interactions only. Webflow's help center documents Scroll into view there. The GSAP builder is a separate tool, and these clicks do not map onto it.

The motion plays in the Designer and not on the published page. Why?

Publish the site after you save the interaction. A trigger that exists only in the Designer is not on the live page yet.

Can I use a preset fade instead of building the timeline?

Yes. Scroll into view is an element trigger, so you can pick a preset under Appear and disappear. Set the direction and the delay there. Use a custom animation when you need your own distance and opacity.

Sources & further reading

Need a hand with your Webflow site?

View membership