弹跳卡组

New

一叠卡片进入视口时错峰弹跳着扇形展开。间距、旋转与错峰节奏可调;「减少动效」偏好下保留扇形布局,仅做透明度渐入。

安装

用 shadcn CLI 添加,或手动复制源码。

$ bunx --bun shadcn add @uilab/bounce-cards

API 参考

children
ReactNode[]

Card contents, rendered as an absolutely stacked deck that fans open.

stagger?
number

Stagger between each card's entrance, in ms.

90
spacing?
number

Horizontal offset between adjacent cards at rest, in px.

46
rotation?
number

Rotation step between adjacent cards at rest, in degrees.

9
className?
string

Keep in mind

Some components on this site are inspired by or recreated from existing work across the web. I'm not here to take credit; just to learn, experiment, and sometimes push things a bit further. If something looks familiar and I forgot to mention you, reach out and I'll fix that right away.