Skip to content

Shatter Type

A word cut into triangular glass shards. Bring your cursor close and fracture lines appear; push into it and the shards lift, spin, cast shadows and flash their cracked edges before springing home. Click and the whole word blows apart, then puts itself back together.

Canvas 2DPhysicsZero dependencies60fpsReduced-motion safe
BREAK
Push into the glassClick to blow it up

Tweak

LIVE

Type

Colour

#f2f0eb
#b9b6ae
#ff4d00
#4d7bff

Glass

34px
1.00
1.00
1.00

Props

11 props
  • textstring
    The word or short phrase to shatter. Uses the component's font; exposed to screen readers.default "BREAK"
  • colorstring
    Top colour of the type.default "#f2f0eb"
  • colorBottomstring
    Bottom colour of the type, a soft vertical fade.default "#b9b6ae"
  • weightnumber
    Font weight of the type.default 900
  • crackAstring
    First crack colour.default "#ff4d00"
  • crackBstring
    Second crack colour.default "#4d7bff"
  • shardSizenumber
    Approximate shard size in px. Smaller means more, finer shards.default 34
  • radiusnumber
    How far around the cursor the glass reacts.default 1
  • forcenumber
    How hard the cursor pushes shards away.default 1
  • blastnumber
    How violently a click blows the word apart.default 1
  • classNamestring
    Size it, e.g. h-[360px] w-full.