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

旋转入场

从反向旋转半圈并缩小着旋进入位

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

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

CSS 代码

CSS
.fx .rti{width:120px;height:80px;margin:56px auto;border-radius:12px;background:linear-gradient(135deg,#a371f7,#f778ba);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;animation:kfx-rot 1.2s ease both}
.fx:hover .rti{animation:kfx-rot 1.2s ease both}
@keyframes kfx-rot{from{transform:rotate(-200deg) scale(.5);opacity:0}to{transform:rotate(0) scale(1);opacity:1}}

HTML 结构

HTML
<div class="fx">
<div class="rti">旋入</div>
</div>
实现要点:rotate(-200deg) scale(.5) 到归位的缓动

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

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