Try dragging
More components in Pro
Galleries, cards and interactive pieces for pages that need more than the basics.
frontImage | undefined | Image URL printed on the front of the card. Any size or aspect works. | |
backImage | undefined | Image 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. |
cornerRadius | 0.3 | Roundness of the card corners, from 0 for square to 1 for very round. | |
size | 0.6 | Height 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. |
strapLength | 0.5 | How far below the top edge the card hangs, from 0 for a short band to 1 for a long one. | |
strapImage | undefined | Image 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. | |
strapWidth | 0.65 | Width 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. |
gravity | How strongly the card falls. Lower values float and swing slowly, 0 turns gravity off. | ||
damping | 0.5 | How quickly the swinging dies down, from 0 for a long sway to 1 for a quick settle. | |
elasticity | 0.5 | How hard the band snaps the card back after it is stretched and released. | |
breeze | 0.5 | A gentle, ever-changing wind that keeps the card moving when nobody touches it. | |
interactive | Lets 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. |
frontImagestringImage URL printed on the front of the card. Any size or aspect works.
undefinedbackImagestringImage URL printed on the back. Falls back to frontImage, then to a blank card.
undefinedimageFit'cover' | 'contain'How the images fit the card. Cover fills and crops, contain fits inside on the card color.
'cover'cardColorstringColor of the card itself, shown when there is no image and around contained images.
'#ffffff'orientation'portrait' | 'landscape'Whether the card hangs tall or wide.
'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.
'glossy'cornerRadiusnumberRoundness of the card corners, from 0 for square to 1 for very round.
0.3sizenumberHeight of the card as a fraction of the container height.
0.6anchor'left' | 'center' | 'right'Where the band hangs from along the top edge of the container.
'center'strapLengthnumberHow far below the top edge the card hangs, from 0 for a short band to 1 for a long one.
0.5strapImagestringImage URL printed along the band. A wide image repeats along its length, with its height spanning the band width.
undefinedstrapColorstringColor of the band when there is no strap image.
'#111111'strapWidthnumberWidth of the band relative to its default, from 0.4 to 2.
0.65metal'graphite' | 'silver' | 'gold'Finish of the clamp and the ring that holds the card.
'silver'gravitynumberHow strongly the card falls. Lower values float and swing slowly, 0 turns gravity off.
dampingnumberHow quickly the swinging dies down, from 0 for a long sway to 1 for a quick settle.
0.5elasticitynumberHow hard the band snaps the card back after it is stretched and released.
0.5breezenumberA gentle, ever-changing wind that keeps the card moving when nobody touches it.
0.5interactivebooleanLets visitors drag, stretch and throw the card, and click it to flip it over.
introbooleanOn 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


