交互式词条
拖拽排序
拖拽排序用于让界面确认用户动作并保持物理感。
当前词条
预览、参数和导出
拖拽排序用于让界面确认用户动作并保持物理感。
拖拽排序是「反馈与交互」中的核心词条,用来让界面确认用户动作并保持物理感。
浏览分类180ms
28px
0ms
soft
.motion-card {
animation-name: motion-drag-to-reorder;
animation-duration: 180ms;
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-drag-to-reorder {
from {
opacity: 0;
transform: scale(0.96);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@media (prefers-reduced-motion: reduce) {
.motion-card {
animation-name: motion-drag-to-reorder-reduced;
animation-duration: 180ms;
animation-delay: 0ms;
transform: none;
animation-iteration-count: 1;
}
}
@keyframes motion-drag-to-reorder-reduced {
from {
opacity: 0;
}
to {
opacity: 1;
}
}Agent Prompt
为界面片段使用「拖拽排序」动效。围绕 拖拽排序用于让界面确认用户动作并保持物理感。 设计 preview,动画 transform 与 opacity,时长 180ms,幅度 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,使用有物理感的起点和强缓出曲线。
拖拽排序 在减少动态时移除位移、旋转或循环,只保留短淡入和状态对比。