Press

An example of using Motion's press function to animate elements as a user presses them. press() automatically filters out right clicks and secondary touch points. Every element with a press gesture is keyboard accessible by default.

Loading...

Motion Studio

Motion Studio

Enhance your AI code editor with this example

Use Motion Studio to create new components or infuse static designs with animations based on "Press" and 330+ other examples.

Latest JS examples

Motion is supported by the best in the industry.