Ticket
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/button-ticketAbout this component
A ticket with a perforated stub. Hover tugs at the stub; a click tears it off along the perforation and it tumbles away while the ticket reads Admitted, then a fresh stub slides back into place. The notches are radial-gradient masks, the perforation a repeating gradient.
Triggers
- Click
- Hover
- State change
Techniques
- Radial gradient
- Keyframes
- Transform only
- State machine
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
The stub is aria-hidden decoration; the main label is the button's name and changes with the state.
Reduced motion
The stub simply disappears and returns.
Use it in anything you build, commercial and client work included. Licence