跳到正文
Skillpedia
网站与界面(前端)7.2k · #13447

marquee-loop

它能做什么

这个技能指导 AI 智能体制作循环跑马灯,即一条永远滚动的内容带。适合希望以动态方式展示标识、推荐语或简短功能标签的网站。

适用场景

  • ✓当你希望一排标识、标签或截图无限滚动时。
  • ✓当一条短内容带需要循环且没有明显跳动时。
  • ✓当跑马灯仍需尊重偏好减少动效的访客时。

技能链接

https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/marquee-loop/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/marquee-loop/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我在首页添加一条无缝滚动的客户标识带,循环时不会跳动。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会复制内容序列,使末尾与开头相接,然后让轨道匀速移动。边缘会做淡化处理,鼠标悬停时动画暂停,对于偏好减少动效的访客则会变为静态。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Marquee Skill

Use When

  • A design needs a seamless infinite loop for logos, testimonials, screenshots, tags, or short feature chips.

Workflow

  1. Duplicate the item sequence so the end and beginning match perfectly.
  2. Animate the track with a linear transform from 0 to -50%.
  3. Keep item widths stable to prevent jumps during the loop.
  4. Mask or fade the edges when the marquee enters or exits a section.
  5. Pause or slow the marquee on hover only when interaction is useful.
  6. Respect prefers-reduced-motion with a static wrap or very slow movement.

Guardrails

  • Do not animate unique content that users must read carefully.
  • Do not use large CPU-heavy shadows or filters on every moving item.
常见问题

为什么要复制内容?

复制列表可以让末尾与开头对齐,因此循环看起来是无缝的。

它适合用于长文本吗?

不适合。该技能建议不要对需要仔细阅读的独特内容做动画。

它会拖慢页面吗?

该技能提醒,不要在移动的内容上使用厚重的阴影或滤镜,以保持动效流畅。

详情

作者的原始描述

Apply seamless infinite marquee loops using duplicated items.

repo: MengTo/Skills

热度

GitHub 星标
7.2k
排名
#13447
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能