You’re experiencing a common issue with scroll into view interactions in Webflow where an element only triggers its animation when scrolling down, but not when scrolling back up. This happens because the default interaction settings apply only on entering the viewport.
- Go to Interactions panel (lightning icon in the right sidebar).
- Select the element you want to animate.
- Click + to create a new Element Trigger and choose Scroll Into View.
- Under On Scroll Into View, configure your color change animation (e.g., change background or text color).
- Don’t stop here—scrolling up won’t trigger this unless you define a reverse.
- Under the same Scroll Into View trigger, look for On Scroll Out of View.
- Click + Add Animation for this state.
- Create a new animation that restores the original color or transition to a different one.
- This ensures the animation runs in both directions — when the element enters and exits the viewport.
3. Use Smoothing or No Animation Delay
- Avoid using delays that can conflict with scroll speed.
- In each animation step, make sure the Transition Duration is consistent (e.g., 0.2s) for both entering and exiting the viewport.
4. Avoid Using the Same Animation Twice
- Do not reuse the exact same timed animation for both “In View” and “Out of View”.
- Webflow can glitch if an animation simply reverses itself due to identical settings. Always duplicate and rename as two separate animations.
5. Set Color via Opacity or Background
- For text color change, use the Text Color property in the animation step.
- For background color, ensure the element has a defined background (not transparent) before applying the animation.
Summary
To make an element change color both when scrolling into view and when scrolling out, set up two separate animations under the Scroll Into View trigger — one for “scroll into view” and another for “scroll out of view.” This ensures the color change triggers in both scroll directions.