Y 轴翻转入场 · 入场与交互动画
前端Wiki/CSS 特效合集/Y 轴翻转入场

Y 轴翻转入场

元素绕 Y 轴从侧边翻转入场,悬停可重播

← 返回 入场与交互动画 类特效列表
翻转入场

上方为纯 CSS 实时演示,直接将鼠标移上去 / 点击感受效果

CSS 代码

CSS
.fx .fiy{width:140px;height:80px;margin:56px auto;border-radius:12px;background:linear-gradient(135deg,#4a9eff,#a371f7);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;backface-visibility:hidden;animation:kfx-fiy 1.2s ease both}
.fx:hover .fiy{animation:kfx-fiy 1.2s ease both}
@keyframes kfx-fiy{from{transform:perspective(400px) rotateY(90deg);opacity:0}to{transform:perspective(400px) rotateY(0);opacity:1}}

HTML 结构

HTML
<div class="fx">
<div class="fiy">翻转入场</div>
</div>
实现要点:perspective + rotateY 90→0 + 透明度淡入

其它入场与交互动画类特效

回到 前端Wiki 首页 · CSS 特效合集