Folder
Glass Folder Card
A folder with a frosted glass front that leans forward on hover while its pictures rise out and fan apart.
npx motionsnack add glass-folder-cardCustomize
Colour
<GlassFolderCard />Props
16 properties
| Property | Type | Default | Description |
|---|---|---|---|
| items | { src: string; alt?: string }[] | 3 sample pictures | Pictures in the folder, up to three. Closed, their tops peek out; open, they rise and fan apart. |
| actionLabel | string | 'Open the folder' | Accessible name of the button. |
| className | string | '' | Extra classes on the folder, e.g. a width. |
| title | string | 'My Files' | Name on the folder. Leave empty to hide it. |
| subtitle | string | '24 items' | Small line under the name. Leave empty to hide it. |
| open | boolean | false | Keep the folder open. |
| hoverOpen | boolean | true | Open the folder while the pointer is over it. |
| showAction | boolean | true | Button in the corner that opens and closes the folder. |
| tilt | number | 24 | How far the glass front leans forward when the folder opens. |
| lift | number | 0.7 | How far the pictures rise out of the folder. |
| fan | number | 9 | How far the pictures fan apart. |
| blur | number | 16 | Blur of the glass front. |
| duration | number | 0.7 | Seconds the folder takes to open. |
| glow | boolean | true | Coloured back of the folder. Off leaves it grey. |
| glowColor | string | '#000000' | Colour of the back, one flat tone. Without a value it is light grey, black in dark mode. |
| glowIntensity | number | 1 | Strength of the colour. |
About Glass Folder Card
A folder built from two shapes: a coloured back with a tab and a frosted glass front that blurs whatever sits behind it. On hover, on keyboard focus or with the button in the corner the glass front leans forward in perspective and up to three pictures rise out of the folder and fan apart; the plus on the button turns into a cross. The back is one flat tone: light grey, near-black in dark mode, or any colour you pass in. Everything scales with the width of the folder, so it works as a small tile and as a large feature. With reduced motion the states switch without the movement.
What's included
- Frosted glass front that leans forward in 3D
- Up to three pictures that rise and fan apart
- Opens on hover, focus or with its button
- Flat back in grey or your own colour
- Scales with its own width
- Light and dark, reduced motion respected
- Type
- Animated React folder block
- Library
- Blocks · Folder
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-09-20
- Install
npx motionsnack add glass-folder-card