Motionshelf
← All components

Buttons

UFO Abduction

A flying saucer prowls the top of the area; bring the pointer near the button and it beams it up to hover in the light, still clickable, until the pointer leaves.

Install

npx shadcn@latest add https://motionshelf-pi.vercel.app/r/ufo-button.json

Copies the file into your project. Requires React 19, Tailwind CSS v4 and GSAP (installed as a dependency).

Props

NameTypeDefaultDescription
childrenReactNode—The button label.
rangenumber140How close the pointer must get to the button, in px, before the saucer beams it up.
playgroundClassNamestring""Classes for the play area, which fills the nearest positioned ancestor.
classNamestring""Extra classes for the button.

Dependencies