Skip to content
Components72 / 118

Comet Button

A black glass pill with a comet of light running its edge. Hover and the comet races round to the point nearest your cursor and brakes there with a wobble, its tail stretching with speed and bunching as it stops; it follows you along the edge. Click and it bursts both ways round the button while the sparkle twinkles.

ButtonBorder lightCursor awareSpringsSquash & stretchGSAP
Hover, then move along the edgeClick to burst the comet

Tweak

LIVE

Text

Sparkle icon

Look

64px
#f3c66d

Props

7 props
  • labelstring
    Button text.default "Get Started"
  • hrefstring
    Render a link.
  • onClick() => void
    Click handler.
  • sizenumber
    Height, px.default 56
  • tailstring
    The comet's tail colour.default "#f3c66d"
  • iconboolean
    Show the sparkle icon.default true
  • classNamestring
    Extra classes.