COMPONENT / 卡片 / V0.9.0
Wobble / 摆动卡片
卡片朝指针方向平移并轻微放大,离开后弹性摆回原位。
可调字段
| 键 | 名称 | 类型 | 范围 |
|---|---|---|---|
accent | 强调色 | color | — |
radius | 圆角 / px | number | 0 – 40 |
duration | 过渡时长 / ms | number | 100 – 30000 |
title | 标题 | text | — |
subtitle | 说明 / 展开内容 | textarea | — |
label | 按钮或内容文字 | text | — |
默认参数
{
"accent": "#a8f0e0",
"radius": 18,
"duration": 360,
"title": "Soft physics, no library.",
"subtitle": "跟随指针平移,离开时弹回原位。",
"label": "WOBBLE"
}运行依赖
react@18.3.1react-dom@18.3.1
许可
FORMA原创组件,可用于个人及商业项目;运行库遵循MIT许可。
查看实时预览 ↗返回组件中心