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.
Related docs
Enhance your AI code editor with this example
Use Motion Studio to create new components or infuse static designs with animations based on "Drag: Lock direction" and 300+ other examples.




