Agent Skillsnexu-io/motion-anything › loading-shimmer

loading-shimmer

GitHub

提供加载骨架屏的CSS组件,通过柔和的光扫动画提升感知性能。支持prefers-reduced-motion无障碍特性,仅用于真实内容加载期间,严禁作为装饰或用于极快加载场景。

recipes/web/loading-shimmer/SKILL.md nexu-io/motion-anything

Trigger Scenarios

需要为正在加载的内容(如卡片、列表)添加占位符以提升用户体验 实现符合无障碍标准的骨架屏动画

Install

npx skills add nexu-io/motion-anything --skill loading-shimmer -g -y
More Options

Non-standard path

npx skills add https://github.com/nexu-io/motion-anything/tree/main/recipes/web/loading-shimmer -g -y

Use without installing

npx skills use nexu-io/motion-anything@loading-shimmer

指定 Agent (Claude Code)

npx skills add nexu-io/motion-anything --skill loading-shimmer -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": null,
        "design_system": {
            "requires": false
        },
        "example_prompt": "Use loading-shimmer for the card while it loads: an avatar circle, two text lines and a media\nblock as skeletons with a soft sweep, plus a prefers-reduced-motion fallback (static skeleton)."
    },
    "name": "loading-shimmer",
    "triggers": [
        "loading skeleton",
        "shimmer placeholder",
        "content loading state",
        "骨架屏",
        "加载占位"
    ],
    "description": "Skeleton placeholders with a soft sweeping shimmer while content loads. Use to fill space for\ncards\/lists\/profiles that are still loading and make the wait feel shorter. Honors\nprefers-reduced-motion (static skeleton). Only show while real content is loading — never as decoration.\n"
}

loading-shimmer

Skeleton placeholders with a soft sweeping highlight. Part of motion-anything; obeys MOTION-SPEC.md.

When to use it

  • Placeholders for content still loading (cards, lists, profiles, media). Improves perceived performance.

When NOT to use it (restraint)

  • Loads under ~300ms (a skeleton flash is worse than nothing). Never as pure decoration.

How to apply

  1. Copy loading-shimmer.css and link it.
  2. Add data-skeleton to placeholder blocks (give each a width/height).
  3. Remove the placeholders (or the attribute) the moment real content arrives.

Accessibility & performance

  • prefers-reduced-motion: static skeleton, no sweep. The sweep uses transform only (GPU-safe).

Version History

  • b016900 Current 2026-07-11 17:09

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
23350c60
Indexed
2026-07-11 17:09

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-13 08:38
浙ICP备14020137号-1 $お客様$