生长阴影悬停 · 入场与交互动画
前端Wiki/CSS 特效合集/生长阴影悬停

生长阴影悬停

悬停上浮的同时阴影扩大变深,Hover.css 经典效果

← 返回 入场与交互动画 类特效列表
生长阴影

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

CSS 代码

CSS
.fx .gsh{width:140px;height:90px;margin:60px auto;border-radius:14px;background:linear-gradient(135deg,#f778ba,#a371f7);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;transition:transform .3s,box-shadow .3s;box-shadow:0 4px 12px rgba(0,0,0,.3);cursor:pointer}
.fx:hover .gsh{transform:translateY(-8px) scale(1.06);box-shadow:0 18px 36px rgba(0,0,0,.55)}

HTML 结构

HTML
<div class="fx">
<div class="gsh">生长阴影</div>
</div>
实现要点:translateY + scale + box-shadow 三重同步过渡

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

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