Octagon
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/button-octagonAbout this component
An 8-sided button shaped with a CSS clip-path polygon. On hover, the entire shape rotates 22.5 degrees with a spring overshoot, the background gradient fills in, and the inner text counter-rotates to stay upright.
Triggers
- Hover
Techniques
- clip-path
- CSS transition
Difficulty
Beginner
Accessibility
Reduced motion
Rotation transition should be disabled under prefers-reduced-motion.
Use it in anything you build, commercial and client work included. Licence