shatter-morph

Shatter any element into 3D shards

One function breaks a card, image, table or form into real pieces, swirls them through space and rebuilds them as something else. Works with plain HTML, Vue and React.

npm install shatter-morph
See the code
shatter-morph MIT

3D shatter effect

  • Works on every HTML tag
  • Vue, React and plain HTML
  • Six motion styles
Explore examples

Effect settings

Works on every tag

Each box below is a real element. Press Shatter to change its content.

Shatter as you scroll

Scroll position drives the effect. Scroll back and every shard returns to its place.

  1. <article>
  2. <figure>
  3. <table>
0%

One line to start

Give it your elements. Scrolling does the rest.

shatterScroll('.step')

Use it anywhere

A small core with first-class adapters for your stack.