Drive an animation from pointer position (mouse-position trigger) — e.g. parallax or a value that tracks the cursor across an axis.
Where: Right sidebar → Interactions → Pointer → Mouse position scrub — Add a Mouse position interaction
Key ideas
- Axis & scope: x/y/both; scope to element or window.
- Options: smooth, onlyOnHold, fromCurrentPosition, distance, keepAtLastLocation.
Steps
- Select the element to animate.
- Add a "Mouse position scrub" interaction.
- Choose the axis/scope and the animated properties.
- Tune smoothing and distance, then preview.