Agent Skills
› nexu-io/motion-anything
› lottie-tab
lottie-tab
GitHub提供可移植的Lottie底部Tab指示器动画。支持Web和App端一致播放,默认暂停以尊重用户减少动效偏好。建议仅在CSS无法实现时使用,避免引入160KB运行时开销。
Trigger Scenarios
需要底部标签页的带动画指示器
需要轻量级、跨平台的微交互动画
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


