
div {
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
}
div:hover {
transform: translateY(-4px);
-webkit-transform: translateY(-4px);
-moz-transform: translateY(-4px);
box-shadow: 0 20px 32px -18px rgba(79,125,183,.3);
-webkit-box-shadow: 0 20px 32px -18px rgba(79,125,183,.3);
-moz-box-shadow: 0 20px 32px -18px rgba(79,125,183,.3);
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
}
具体参数介绍:
transition:位移时间和时间曲线
transform:位移距离和方向
box-shadow:阴影的颜色,方向,尺寸
hbuilder微信小程序自定义头部导航栏navigationStyle
上面是“css3鼠标悬停div盒子实现阴影效果”的全面内容,想了解更多关于 前端知识 内容,请继续关注web建站教程。
当前网址:https://m.ipkd.cn/webs_11701.html
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

Noema Lab创作实验室:为不同阶段的音乐创作者提供一站式智能工具
wordpress如何统计网站或指定文章的评论数量
Clipchamp官网:一款基于云计算技术的视频编辑器
DUIX:硅基智能开源的2D真人级AIGC实时渲染数字人交互平台
RSS翻译器
光年日志分析工具(图文)