Motion Values » Resetting a Motion Value

Resetting a Motion Value BETA

Example with a non-native Scroll Example with a native Scroll Mini-map example MotionValues are sticky, they will persist between reloads (while React’s values inside useState(), useStore(), etc. get flushed). So when you scroll to a certain position and then directly reload the prototype, you’ll see that the scroll jumps up when you try to scroll again. This useEffect() line fixes […]
This page is only available to members.