Make a component change to another variant as the visitor scrolls, such as a button that turns to Success once it comes into view.
Updated 24 Nov 2026
A component can have more than one variant, such as a button that is Default or Success. A Scroll variant switches a copy of that component from one variant to another while the visitor scrolls. A button can turn to Success as it comes into view. A banner can change look when the visitor reaches the pricing section.
Read Give a component more than one variant first. A Scroll variant only switches between the variants you made there. It uses the component's own transition, so the change plays the way you set it, and there is no separate Transition row.
A row named Scroll Variant appears, and its box opens by itself. Select the row any time to open it again. The x on the row takes the effect away.
Trigger has three choices.
| Setting | Used with | What it does | Default |
|---|---|---|---|
| Trigger | All | On scroll, Layer in view or Section in view | Layer in view |
| Start | Layer in view | How much of the copy must show: Top (the first edge), Center (half) or Bottom (all of it) | Center |
| Direction | On scroll | Down or Up. The switch happens on this way, and goes back on the other | Down |
| Viewport | Section in view | The line on the screen: Top, Center or Bottom | Top |
| Replay | All | Yes switches every time. No switches once, then stops | Yes |
| From | Layer in view | The variant to show before the copy is seen | the variant the copy starts with |
| Section | Section in view | One of the named sections on this page. It says No sections until you name one | none yet |
| To | All | The variant to switch to. Nothing happens until you pick one | none yet |
For Section in view, Add section adds another Section and To pair, up to ten. The section that reached the line most recently decides which variant shows. A section name that no longer exists on the page does nothing.
A very tall copy counts by how much of the screen it fills, so it still switches.
It works the same on a phone. Scrolling, and a copy coming into view, switch it there as well.
Visitors who ask their device for less motion see the switch happen at once, with no transition.
A page loads the component-variants script only when it has a copy that uses a Scroll variant, or another switching effect. With JavaScript off, the copy shows the variant it was placed with.
Show one of your components in place of the mouse arrow, or just beside it. In the Cursor section, press the plus and choose Custom cursor. Pick a component, then choose how it behaves. Replace hides the arrow, and the component takes its place. Follow keeps the arrow, and the component trails it. For Follow you can set its Position (top, right, bottom or left of the arrow), its Align and an Offset. If you add a Transition, the cursor glides to the pointer with a spring. Without one it sits right on the pointer.
To change the look as the mouse moves around, add Set variant on a layer inside the one with the custom cursor. While the mouse is over that layer, the cursor shows the variant you picked. The old look fades out while the new one fades in. If you added a Transition to the custom cursor, the fade lasts about as long as that spring takes to settle (between 0.1 and 1 second). Without one it takes 0.2 seconds. Set variant needs a custom cursor on a layer above it, or on the page itself.
Custom cursors do not show on touch screens or when a visitor has reduced motion turned on. Those visitors keep their normal arrow. The custom cursor also steps aside while a popup or a picture viewer is open, so the normal arrow shows there, and it comes back where the mouse is when that closes. This happens even when the visitor opened the popup with the keyboard.