Skip to content
PixiKit

Tear Card

An image card whose edges fray and tear apart as the pointer moves, while the card drifts and tilts after it, then pulls itself back together.

pixikit.com/docs/components/tear-card

Customize

Width300px
Height400px
Intensity0.50
Sensitivity0.50
Hover decay0.05
Recovery0.6s
Idle0.35
Grain0.25
Detail5
Pattern4
Flow0.00
Chroma0.00
Travel50px
Tilt10°
Scope
Radius0px
Grayscale

Props

21
NameTypeDefaultDescription
imagestringNoneImage URL. It fills the card like a cover.
childrenReactNodeNoneContent shown over the bottom of the image.
widthnumber300Card width in pixels.
heightnumber400Card height in pixels.
intensitynumber0.5How far the image tears apart at full decay, from 0 to 2. The edges tear the most so the photo stays readable.
sensitivitynumber0.5How little pointer movement it takes to reach full decay, from 0 to 1.
hoverDecaynumber0.05Decay that stays while the pointer rests on the card, from 0 to 1.
recoverynumber0.6Seconds the image takes to pull itself back together once the pointer slows down.
idlenumber0.35Keeps the edges slowly fraying and soft patches drifting while nobody interacts, from 0 to 1.
grainnumber0.25Size of the tears, from broad melting shapes at 0 to fine shards at 1.
detailnumber5Layers of noise in the tears, from 1 to 8. More layers give rougher edges.
patternnumber4Picks a different tear pattern.
flownumber0Lets the tears churn while the card is decaying. 0 keeps them still.
chromanumber0Splits the color channels apart inside the tears.
travelnumber50How far in pixels the card drifts toward the pointer before it slows down.
tiltnumber10How 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.
radiusnumber0Corner radius of the image in pixels.
grayscalebooleanfalseShows the image in grayscale.
classNamestring""Extra class names for the root.
styleCSSPropertiesNoneInline styles for the root.

More media components in Pro

View all

Related