跳到正文
UIGrammer
EN 中文

动画 · 注意力引导 · 16

跑马灯

跑马灯 = 一段文字或 Logo 沿水平方向持续循环滚动,用来呈现氛围性的低优先级信息。

直达修改 Prompt

New · Sale · Live now ·

尊重 prefers-reduced-motion:动画关闭,仅保留终态。

跑马灯是什么?

跑马灯让一段文字或 Logo 在屏幕上无尽循环横移。它是氛围性的、不紧急——状态行、公告、合作方 Logo。关键是「无缝」:复制一份内容让循环看不出接缝,并在悬停时暂停以便阅读。

动画 标本

触发
mount
技术
css
时长
6s
缓动
linear
性能
transform

什么时候用

  • Status lines, announcements, breaking updates
  • Partner / logo strips on landing pages

什么时候别用

  • Any content that must be read in full (use a list)
  • Above the fold as the primary message

Always duplicate the content — a single copy always shows a jump at the loop seam.

Build a marquee: duplicate the text and translateX from 0 to -100% on a linear loop, transform only.