Agent Skills
› nexu-io/motion-anything
› rotating-text
rotating-text
GitHub一个轻量级无依赖的文本轮播组件,用于在标题中循环切换短语。支持 prefers-reduced-motion 无障碍设置,确保动画安全。
Trigger Scenarios
需要在页面标题或标语中循环展示多个短语
需要实现简洁的单词替换效果且无需外部库
Install
npx skills add nexu-io/motion-anything --skill rotating-text -g -y
SKILL.md
Frontmatter
{
"od": {
"mode": "prototype",
"preview": {
"type": "html"
},
"surface": "web",
"category": "animation-motion",
"platform": "desktop",
"design_system": {
"requires": false
}
},
"name": "rotating-text",
"triggers": [
"rotating words",
"cycling text",
"轮换文字",
"词语轮播"
],
"description": "One word swaps for the next in place — a compact way to cycle a few phrases in a headline. One rotator per view; short words. Under prefers-reduced-motion it swaps text with no travel.\n"
}
rotating-text
A word that cycles in place. Dependency-free, reduced-motion safe.
How to apply
Copy css+js; <span class="rot" data-words="a|b|c">a</span>.
Version History
- b016900 Current 2026-07-11 17:10


