Drag: Lock direction
An example of locking the drag direction of an element based on its initial drag direction using Motion for React's dragDirectionLock prop.

An example of locking the drag direction of an element based on its initial drag direction using Motion for React's dragDirectionLock prop.
Use Motion Studio to create new components or infuse static designs with animations based on "Drag: Lock direction" and 330+ other examples.

Motion is supported by the best in the industry.