No. 01
Afterglow
More components in Pro
Galleries, cards and interactive pieces for pages that need more than the basics.
image | Image URL. It fills the card like a cover. | ||
children | ReactNode | Content shown over the bottom of the image. | |
width | 300 | Card width in pixels. | |
height | 400 | Card height in pixels. | |
intensity | 0.5 | How far the image tears apart at full decay, from 0 to 2. The edges tear the most so the photo stays readable. | |
sensitivity | 0.5 | How little pointer movement it takes to reach full decay, from 0 to 1. | |
hoverDecay | 0.05 | Decay that stays while the pointer rests on the card, from 0 to 1. | |
recovery | 0.6 | Seconds the image takes to pull itself back together once the pointer slows down. | |
idle | 0.35 | Keeps the edges slowly fraying and soft patches drifting while nobody interacts, from 0 to 1. | |
grain | 0.25 | Size of the tears, from broad melting shapes at 0 to fine shards at 1. | |
detail | 5 | Layers of noise in the tears, from 1 to 8. More layers give rougher edges. | |
pattern | 4 | Picks a different tear pattern. | |
flow | Lets the tears churn while the card is decaying. 0 keeps them still. | ||
chroma | Splits the color channels apart inside the tears. | ||
travel | 50 | How far in pixels the card drifts toward the pointer before it slows down. | |
tilt | 10 | How far in degrees the card rotates as the pointer moves sideways. | |
scope | 'window' | 'card' | 'window' | Window follows the pointer anywhere on the page. Card only reacts while it is hovered. |
radius | Corner radius of the image in pixels. | ||
grayscale | Shows the image in grayscale. | ||
| Extra class names for the root. | |||
| Inline styles for the root. |
imagestringImage URL. It fills the card like a cover.
childrenReactNodeContent shown over the bottom of the image.
widthnumberCard width in pixels.
300heightnumberCard height in pixels.
400intensitynumberHow far the image tears apart at full decay, from 0 to 2. The edges tear the most so the photo stays readable.
0.5sensitivitynumberHow little pointer movement it takes to reach full decay, from 0 to 1.
0.5hoverDecaynumberDecay that stays while the pointer rests on the card, from 0 to 1.
0.05recoverynumberSeconds the image takes to pull itself back together once the pointer slows down.
0.6idlenumberKeeps the edges slowly fraying and soft patches drifting while nobody interacts, from 0 to 1.
0.35grainnumberSize of the tears, from broad melting shapes at 0 to fine shards at 1.
0.25detailnumberLayers of noise in the tears, from 1 to 8. More layers give rougher edges.
5patternnumberPicks a different tear pattern.
4flownumberLets the tears churn while the card is decaying. 0 keeps them still.
chromanumberSplits the color channels apart inside the tears.
travelnumberHow far in pixels the card drifts toward the pointer before it slows down.
50tiltnumberHow far in degrees the card rotates as the pointer moves sideways.
10scope'window' | 'card'Window follows the pointer anywhere on the page. Card only reacts while it is hovered.
'window'radiusnumberCorner radius of the image in pixels.
grayscalebooleanShows the image in grayscale.
Extra class names for the root.
Inline styles for the root.



