fxshelf

文档

浏览并安装 fxshelf 动效包

fxshelf 是一组可复制源码、按需安装的 React / Vue 微动效包。

每个动效独立发布在 @fxshelf/* 下,只装你需要的那个即可。

浏览

npm install @fxshelf/card-orbit
npm install @fxshelf/glyph-rain
npm install @fxshelf/starfield
npm install @fxshelf/button-kit
npm install @fxshelf/word-tunnel

已发布包见 npm @fxshelf。CDN 示例与完整用法见各动效文档页。

新增动效

  1. 在 packages/<id>/ 新建包,name 设为 @fxshelf/<id>
  2. 在 apps/site/lib/effects.ts 追加一条 registry
  3. 添加 apps/site/content/docs/effects/<id>.mdx
  4. 更新 apps/site/content/docs/effects/meta.json
  5. 如需,更新根目录 package.json 脚本(build / typecheck / pack:check / lint)以及 apps/site 依赖
  6. 首页卡片会自动读取 registry;文档页 Cards 请同步补上

本页目录