交互式词条
循环
循环用于用持续动效表达等待、活性或环境氛围。
当前词条
预览、参数和导出
循环用于用持续动效表达等待、活性或环境氛围。
循环是「循环与环境动效」中的核心词条,用来用持续动效表达等待、活性或环境氛围。
浏览分类1200ms
28px
0ms
soft
.motion-card {
animation-name: motion-loop;
animation-duration: 1200ms;
animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
animation-delay: 0ms;
animation-fill-mode: both;
will-change: transform, opacity;
transform-origin: center;
animation-iteration-count: infinite;
}
@keyframes motion-loop {
from {
opacity: 0;
transform: translateY(0) scale(0.98);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@media (prefers-reduced-motion: reduce) {
.motion-card {
animation-name: motion-loop-reduced;
animation-duration: 180ms;
animation-delay: 0ms;
transform: none;
animation-iteration-count: 1;
}
}
@keyframes motion-loop-reduced {
from {
opacity: 0;
}
to {
opacity: 1;
}
}Agent Prompt
为界面片段使用「循环」动效。围绕 循环用于用持续动效表达等待、活性或环境氛围。 设计 preview,动画 transform 与 opacity,时长 1200ms,幅度 28px,延迟 0ms,曲线使用 柔和(cubic-bezier(0.23, 1, 0.32, 1)),并包含 reduced-motion fallback。
intent: entrancefeel: softcontext: card
- 需要用持续动效表达等待、活性或环境氛围时使用。
- 适合低频或中频界面变化,保持短、清楚、可打断。
- 复制 prompt 或 CSS 后,可交给 agent 直接实现。
- 在卡片、列表项或轻量面板里预览 循环。
- 调节时长、位移、延迟和曲线,得到适合当前界面的 循环。
- 优先动画 transform 和 opacity,避免 layout 与 paint 抖动。
- UI 动效保持在 300ms 内,频繁出现的反馈要更短。
- 避免 scale(0) 和 UI ease-in,使用有物理感的起点和强缓出曲线。
循环 在减少动态时移除位移、旋转或循环,只保留短淡入和状态对比。