Agent Skills
› nexu-io/motion-anything
› lottie-tab
lottie-tab
GitHub提供基于Lottie JSON的底部Tab栏动画实现方案,支持Web与App端一致播放。强调性能约束,仅在CSS无法实现时使用,并遵循无障碍规范处理用户偏好设置。
Trigger Scenarios
需要为底部标签页添加微交互动画
实现跨平台一致的JSON格式运动图形
Install
npx skills add nexu-io/motion-anything --skill lottie-tab -g -y
SKILL.md
Frontmatter
{
"od": {
"mode": "prototype",
"preview": {
"type": "html"
},
"surface": "web",
"category": "animation-motion",
"platform": "desktop",
"upstream": "https:\/\/github.com\/spemer\/lottie-animations-json",
"design_system": {
"requires": false
},
"example_prompt": "Use lottie-tab: load animation.json with lottie-web on the button, loop it, and guard\nprefers-reduced-motion (autoplay:false)."
},
"name": "lottie-tab",
"triggers": [
"lottie",
"tab",
"标签切换"
],
"description": "An animated bottom-tab indicator — Lottie JSON. A Lottie (JSON) animation — portable motion that plays identically on web and app via\nlottie-web. Honors prefers-reduced-motion (don't autoplay). Reserve Lottie for motion that earns\nits ~160KB runtime.\n"
}
Lottie · Tab
An animated bottom-tab indicator — Lottie JSON. Lottie JSON from spemer/lottie-animations-json
(MIT). Part of motion-anything; obeys MOTION-SPEC.md.
When to use it
- Portable JSON motion identical on web & app; icon/control micro-animations (incl. After Effects / Jitter exports).
When NOT to use it (restraint)
- When a pure-CSS effect would do — don't ship the Lottie runtime for a simple fade.
How to apply
- Include
lottie.min.js(runtime) andanimation.json. lottie.loadAnimation({ container, renderer:'svg', loop:true, autoplay:false, path:'animation.json' }); start on intent / guard reduced-motion.
Accessibility & performance
prefers-reduced-motion: don't autoplay. SVG renderer; motion-as-JSON (portable, AI-readable).
Version History
- b016900 Current 2026-07-11 17:06


