动画 · 形变与变换 · 17
翻转卡片
翻转卡片 = 卡片沿 Y 轴做 3D 旋转,在悬停或点击时翻出另一面(正面/背面)。
直达修改 Prompt →
尊重 prefers-reduced-motion:动画关闭,仅保留终态。
翻转卡片是什么?
翻转卡片绕垂直轴旋转露出背面——正面放引子,背面放详情。它因使用真实透视而显得有实体感,是紧凑的双态容器。桌面悬停翻、触屏点击翻,且只绕一个轴,才不会像故障。
动画 标本
- 触发
- hover
- 技术
- css
- 时长
- 3.2s
- 缓动
cubic-bezier(0.4, 0, 0.2, 1) - 性能
- transform
什么时候用
- Teaser -> detail (product, profile, glossary term)
- Two-sided stats or Q&A cards
什么时候别用
- When both faces must be visible at once (use tabs)
- On tiny touch targets — the back is hard to read
Give the parent real perspective, or the flip looks like a flat skew, not a turn.
Make a flip card: rotateY 0 to 180 on hover with perspective, front and back faces, transform only.