COMPONENT / 粒子画布 / V0.9.0
Glint / 闪耀粒子
canvas 星芒粒子随机闪烁,指针附近的星更亮,纯 2D 绘制零依赖。
可调字段
| 键 | 名称 | 类型 | 范围 |
|---|---|---|---|
accent | 强调色 | color | — |
radius | 圆角 / px | number | 0 – 40 |
duration | 循环周期 / ms | number | 100 – 30000 |
title | 标题 | text | — |
subtitle | 说明 / 展开内容 | textarea | — |
label | 按钮或内容文字 | text | — |
count | 数量 | number | 2 – 36 |
默认参数
{
"accent": "#ffe9a8",
"radius": 18,
"duration": 2400,
"title": "细小的光,也在闪烁。",
"subtitle": "canvas 星芒随机明灭,靠近指针更亮。",
"label": "GLINT",
"count": 26
}运行依赖
react@18.3.1react-dom@18.3.1
许可
FORMA原创组件,可用于个人及商业项目;运行库遵循MIT许可。
查看实时预览 ↗返回组件中心