Cuttle

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-cuttle

About this component

Living skin, after the cuttlefish: hundreds of pigment cells open and close in travelling waves while a warm fin ripples along the top and bottom edges. At rest dark clouds pass slowly over it; hover and rings of colour pulse out from your pointer; a press runs a dark flash out from your finger, blanches the skin and throws a zebra pattern across it that melts back into clouds.

Triggers

  • Hover
  • Click
  • Continuous
  • Mouse tracking

Techniques

  • requestAnimationFrame
  • Event position
  • Radial gradient

Difficulty

Advanced

Accessibility

Keyboard and screen readers

A native <button> named by its label, Explore, set in deep brown with a pale halo over a pale patch of skin; the canvas is aria-hidden.

Reduced motion

One still frame is drawn and nothing moves.

Use it in anything you build, commercial and client work included. Licence

More buttons

See all
FlutedGet code
GeodeGet code
MercuryGet code
PiñataGet code