Electric Border
FreeArcs of electricity that snake around the border, with local discharges, sparks and a flickering glow.
Cards
A deck of cards you shuffle by dragging the top one: inertia, rotation and a spring back to the bottom. Also works with click and keyboard.
Free forever
MIT license, for personal and commercial projects. See installation
Made with Furin: Pill Nav · Metal Button · Copy Morph
| Prop | Type | Default | Description |
|---|---|---|---|
cards | { title: string; caption?: string; from?: string; to?: string }[] | "5 sample cards" | Cards in the deck, from top to bottom. |
width | number | 250 | Width of each card, in px. |
fan | number | 18 | How much each lower card peeks out, in px. |
messiness | number | 4 | Maximum rotation of the cards in the deck, in degrees. |
threshold | number | 90 | Drag distance that shuffles the top card, in px. |
onShuffle | (topIndex: number) => void | "" | Called with the index of the card that just ended up on top. |
1Install the package
npm i furin-ui2Import it
import { CardStack } from "furin-ui";Also with pnpm add furin-ui, yarn add furin-ui or bun add furin-ui. Each component ships its own CSS and imports it for you.
Each file ships its own CSS: there's nothing else to install.
Arcs of electricity that snake around the border, with local discharges, sparks and a flickering glow.
Cards
A cardboard folder that opens on hover and lets its documents peek out with a soft bounce.
Cards
Liquid glass with refraction, a specular edge and a reflection that follows the cursor.
Cards