Agent Skills
› nexu-io/motion-anything
› anim-headshake
anim-headshake
GitHub提供基于Animate.css的headShake CSS关键帧动画,无需JS。适用于快速强调效果,需克制使用以避免干扰重要内容。支持prefers-reduced-motion无障碍选项,遵循Hippocratic-2.1许可。
触发场景
需要为元素添加头部摇晃强调动画
用户询问如何在不使用JavaScript的情况下实现CSS动画
安装
npx skills add nexu-io/motion-anything --skill anim-headshake -g -y
SKILL.md
Frontmatter
{
"od": {
"mode": "prototype",
"preview": {
"type": "html"
},
"surface": "web",
"category": "animation-motion",
"platform": "desktop",
"upstream": "https:\/\/github.com\/animate-css\/animate.css",
"design_system": {
"requires": false
},
"example_prompt": "Apply headShake (Animate.css) to the element as a emphasis animation, restrained, with a\nprefers-reduced-motion fallback. Attribute Animate.css."
},
"name": "anim-headshake",
"triggers": [
"headshake",
"css animation",
"强调动效"
],
"description": "Head Shake — a drop-in CSS keyframe animation from Animate.css (Hippocratic-2.1, © Daniel Eden).\nNo JS required. Honors prefers-reduced-motion. Use restrained; attribute Animate.css.\n"
}
Animate · Head Shake
Head Shake — CSS keyframe animation from Animate.css (Hippocratic License 2.1, © Daniel Eden). Part of motion-anything.
When to use it
- A quick, drop-in CSS emphasis animation (no JS).
When NOT to use it (restraint)
- Many at once / must-read content. Keep it restrained.
How to apply
- Copy
headShake.css. 2. Add classheadShaketo the element + setanimation-duration.
Accessibility & license
prefers-reduced-motion: disabled. Attribute Animate.css (Hippocratic-2.1).
版本历史
- b016900 当前 2026-07-11 17:04


