Try dragging

Corner Radius
0.3
Size
0.6
Band Length
0.5
Band Width
0.65
Gravity
Damping
0.5
Elasticity
0.5
Breeze
0.5

More components in Pro

Galleries, cards and interactive pieces for pages that need more than the basics.

View all 255
22 properties
frontImageundefinedImage URL printed on the front of the card. Any size or aspect works.
backImageundefinedImage URL printed on the back. Falls back to frontImage, then to a blank card.
imageFit'cover' | 'contain''cover'How the images fit the card. Cover fills and crops, contain fits inside on the card color.
cardColor'#ffffff'Color of the card itself, shown when there is no image and around contained images.
orientation'portrait' | 'landscape''portrait'Whether the card hangs tall or wide.
finish'glossy' | 'matte' | 'holographic' | 'metallic''glossy'Surface of the card. Holographic adds a sparkling foil whose colors shift as the card turns, metallic a brushed sheen.
cornerRadius0.3Roundness of the card corners, from 0 for square to 1 for very round.
size0.6Height of the card as a fraction of the container height.
anchor'left' | 'center' | 'right''center'Where the band hangs from along the top edge of the container.
strapLength0.5How far below the top edge the card hangs, from 0 for a short band to 1 for a long one.
strapImageundefinedImage URL printed along the band. A wide image repeats along its length, with its height spanning the band width.
strapColor'#111111'Color of the band when there is no strap image.
strapWidth0.65Width of the band relative to its default, from 0.4 to 2.
metal'graphite' | 'silver' | 'gold''silver'Finish of the clamp and the ring that holds the card.
gravityHow strongly the card falls. Lower values float and swing slowly, 0 turns gravity off.
damping0.5How quickly the swinging dies down, from 0 for a long sway to 1 for a quick settle.
elasticity0.5How hard the band snaps the card back after it is stretched and released.
breeze0.5A gentle, ever-changing wind that keeps the card moving when nobody touches it.
interactiveLets visitors drag, stretch and throw the card, and click it to flip it over.
On mount the card drops in from the side and swings into place.
Extra class names for the root element.
Inline styles for the root element.
frontImagestring

Image URL printed on the front of the card. Any size or aspect works.

Defaultundefined
backImagestring

Image URL printed on the back. Falls back to frontImage, then to a blank card.

Defaultundefined
imageFit'cover' | 'contain'

How the images fit the card. Cover fills and crops, contain fits inside on the card color.

Default'cover'
cardColorstring

Color of the card itself, shown when there is no image and around contained images.

Default'#ffffff'
orientation'portrait' | 'landscape'

Whether the card hangs tall or wide.

Default'portrait'
finish'glossy' | 'matte' | 'holographic' | 'metallic'

Surface of the card. Holographic adds a sparkling foil whose colors shift as the card turns, metallic a brushed sheen.

Default'glossy'
cornerRadiusnumber

Roundness of the card corners, from 0 for square to 1 for very round.

Default0.3
sizenumber

Height of the card as a fraction of the container height.

Default0.6
anchor'left' | 'center' | 'right'

Where the band hangs from along the top edge of the container.

Default'center'
strapLengthnumber

How far below the top edge the card hangs, from 0 for a short band to 1 for a long one.

Default0.5
strapImagestring

Image URL printed along the band. A wide image repeats along its length, with its height spanning the band width.

Defaultundefined
strapColorstring

Color of the band when there is no strap image.

Default'#111111'
strapWidthnumber

Width of the band relative to its default, from 0.4 to 2.

Default0.65
metal'graphite' | 'silver' | 'gold'

Finish of the clamp and the ring that holds the card.

Default'silver'
gravitynumber

How strongly the card falls. Lower values float and swing slowly, 0 turns gravity off.

dampingnumber

How quickly the swinging dies down, from 0 for a long sway to 1 for a quick settle.

Default0.5
elasticitynumber

How hard the band snaps the card back after it is stretched and released.

Default0.5
breezenumber

A gentle, ever-changing wind that keeps the card moving when nobody touches it.

Default0.5
interactiveboolean

Lets visitors drag, stretch and throw the card, and click it to flip it over.

introboolean

On mount the card drops in from the side and swings into place.

Extra class names for the root element.

Inline styles for the root element.

Dependencies

1 required package

npm install three