Agent Skills
› nexu-io/motion-anything
› lottie-pagination
lottie-pagination
GitHub提供可移植的 Lottie JSON 分页点动画,支持 Web 和 App。仅在 CSS 无法实现时使用,以节省运行时开销。遵循无障碍规范,尊重用户减少运动偏好,默认不自动播放。
Trigger Scenarios
需要跨平台一致的分页指示器动画
CSS 无法实现所需的微交互动画效果
Install
npx skills add nexu-io/motion-anything --skill lottie-pagination -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-pagination: load animation.json with lottie-web on the icon, loop it, and guard\nprefers-reduced-motion (autoplay:false)."
},
"name": "lottie-pagination",
"triggers": [
"lottie",
"pagination",
"分页指示"
],
"description": "An animated pagination dots 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 · Pagination
An animated pagination dots 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


