ImageStack
Two stacked photos. Press and drag: the stack follows your finger and the photos fan apart. Let go and everything springs back.
Preview
Installation
npx @codewithrabby/ui@latest add image-stackUsage
import { ImageStack } from "@/components/uir/image-stack";
<ImageStack
images={[require("./back.jpg"), require("./front.jpg")]}
size={150}
spread={70}
/>Props
| Prop | Type | Default |
|---|---|---|
imagesBack and front photo. | [ImageSource, ImageSource] | — |
sizeWidth and height of each photo. | number | 150 |
radiusCorner radius of each photo. | number | 30 |
spreadHow far each photo slides out when fanned. | number | 70 |
tiltMax tilt (deg) of the stack while dragging. | number | 6 |
styleStyle for the outer container. | ViewStyle | — |