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