lottie-tab

GitHub

用于在Web和App中实现底部Tab栏的Lottie JSON动画指示器,支持SVG渲染并尊重用户减少动效偏好,适用于图标微交互。

recipes/lottie/lottie-tab/SKILL.md nexu-io/motion-anything

Trigger Scenarios

需要为底部导航栏添加动画效果 实现跨平台一致的微交互动画

Install

npx skills add nexu-io/motion-anything --skill lottie-tab -g -y
More Options

Non-standard path

npx skills add https://github.com/nexu-io/motion-anything/tree/main/recipes/lottie/lottie-tab -g -y

Use without installing

npx skills use nexu-io/motion-anything@lottie-tab

指定 Agent (Claude Code)

npx skills add nexu-io/motion-anything --skill lottie-tab -a claude-code -g -y

安装 repo 全部 skill

npx skills add nexu-io/motion-anything --all -g -y

预览 repo 内 skill

npx skills add nexu-io/motion-anything --list

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

  1. Include lottie.min.js (runtime) and animation.json.
  2. 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

Same Skill Collection

recipes/animxyz/xyz-fade-big/SKILL.md
recipes/animxyz/xyz-fade-down/SKILL.md
recipes/animxyz/xyz-fade-left/SKILL.md
recipes/animxyz/xyz-fade-right/SKILL.md
recipes/animxyz/xyz-fade-small/SKILL.md
recipes/animxyz/xyz-fade-up/SKILL.md
recipes/animxyz/xyz-flip-left/SKILL.md
recipes/animxyz/xyz-flip-up/SKILL.md
recipes/animxyz/xyz-rise-big/SKILL.md
recipes/animxyz/xyz-rotate/SKILL.md
recipes/app/bottom-sheet/SKILL.md
recipes/app/button-press/SKILL.md
recipes/app/checkbox-pop/SKILL.md
recipes/app/ripple/SKILL.md
recipes/app/tab-bar-slide/SKILL.md
recipes/app/toast-pop/SKILL.md
recipes/css/anim-backindown/SKILL.md
recipes/css/anim-backinleft/SKILL.md
recipes/css/anim-backinright/SKILL.md
recipes/css/anim-backinup/SKILL.md
recipes/css/anim-backoutdown/SKILL.md
recipes/css/anim-backoutleft/SKILL.md
recipes/css/anim-backoutright/SKILL.md
recipes/css/anim-backoutup/SKILL.md
recipes/css/anim-bounce/SKILL.md
recipes/css/anim-bouncein/SKILL.md
recipes/css/anim-bounceindown/SKILL.md
recipes/css/anim-bounceinleft/SKILL.md
recipes/css/anim-bounceinright/SKILL.md
recipes/css/anim-bounceinup/SKILL.md
recipes/css/anim-bounceout/SKILL.md
recipes/css/anim-bounceoutdown/SKILL.md
recipes/css/anim-bounceoutleft/SKILL.md
recipes/css/anim-bounceoutright/SKILL.md
recipes/css/anim-bounceoutup/SKILL.md
recipes/css/anim-fadein/SKILL.md
recipes/css/anim-fadeinbottomleft/SKILL.md
recipes/css/anim-fadeinbottomright/SKILL.md
recipes/css/anim-fadeindown/SKILL.md
recipes/css/anim-fadeindownbig/SKILL.md
recipes/css/anim-fadeinleft/SKILL.md
recipes/css/anim-fadeinleftbig/SKILL.md
recipes/css/anim-fadeinright/SKILL.md
recipes/css/anim-fadeinrightbig/SKILL.md
recipes/css/anim-fadeintopleft/SKILL.md
recipes/css/anim-fadeintopright/SKILL.md
recipes/css/anim-fadeinup/SKILL.md
recipes/css/anim-fadeinupbig/SKILL.md
recipes/css/anim-fadeout/SKILL.md
recipes/css/anim-fadeoutbottomleft/SKILL.md

Metadata

Files
0
Version
b016900
Hash
fb32881d
Indexed
2026-07-11 17:06

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-09 06:20
浙ICP备14020137号-1 $Carte des visiteurs$