Skip to content
Components57 / 118

Scramble Button

A ringed arrow and a label in spaced monospaced capitals that decode themselves. As it comes into view the arrow draws itself from a dot to a dash to an arrow and the label types out, then a glitch flickers over it. Hover and a solid disc blooms out of your cursor inside the ring and swells to fill it, still leaning after your cursor; the arrow redraws itself in light and a band of glitch glyphs sweeps across the label. Leave and the disc shrinks to a dot and slips away the way you went. A real link or button, with an icon-only form.

Glitch decodeTyped introCursor discLink or buttonGSAPReduced-motion safe
Hover from any sidePress it

Tweak

LIVE

Button

Colours

#f8f9ef
#0e0c0a
#d6d7ce
60px

Props

11 props
  • childrenstring
    The label.default "Get started"
  • hrefstring
    Render a link.
  • onClick(e) => void
    Click handler.
  • iconOnlyboolean
    Only the ring and arrow (give it an aria-label).default false
  • inkstring
    Label, arrow and disc.default "#0e0c0a"
  • paperstring
    The arrow over the disc (usually your page colour).default "#f8f9ef"
  • ringstring
    The ring.default "#d6d7ce"
  • sizenumber
    Ring diameter, px.default 60
  • introboolean
    Type the label and draw the arrow when it comes into view.default true
  • aria-labelstring
    Accessible name (needed when iconOnly).
  • classNamestring
    Extra classes.