交互式词条
卡顿
卡顿用于帮助识别卡顿来源并选择更稳的实现方式。
当前词条
预览、参数和导出
卡顿用于帮助识别卡顿来源并选择更稳的实现方式。
卡顿是「性能」中的核心词条,用来帮助识别卡顿来源并选择更稳的实现方式。
浏览分类420ms
28px
0ms
soft
.motion-card {
animation-name: motion-jank;
animation-duration: 420ms;
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;
}
@keyframes motion-jank {
from {
opacity: 0;
transform: translateY(9px);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@media (prefers-reduced-motion: reduce) {
.motion-card {
animation-name: motion-jank-reduced;
animation-duration: 180ms;
animation-delay: 0ms;
transform: none;
animation-iteration-count: 1;
}
}
@keyframes motion-jank-reduced {
from {
opacity: 0;
}
to {
opacity: 1;
}
}Agent Prompt
为界面片段使用「卡顿」动效。围绕 卡顿用于帮助识别卡顿来源并选择更稳的实现方式。 设计 preview,动画 transform 与 opacity,时长 420ms,幅度 28px,延迟 0ms,曲线使用 柔和(cubic-bezier(0.23, 1, 0.32, 1)),并包含 reduced-motion fallback。
intent: entrancefeel: softcontext: card