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:阴影的颜色,方向,尺寸
Motion Vue:无需编写复杂的命令式代码,轻松实现动画效果
上面是“css3鼠标悬停div盒子实现阴影效果”的全面内容,想了解更多关于 前端知识 内容,请继续关注web建站教程。
当前网址:https://ipkd.cn/webs_11701.html
workflows工作流
一支令人难忘的狙击步枪ComfyUI工作流
文生图工作流:一幅海底睡莲,碧海蓝天comfyui工
五颜六色的球花comfyui工作流
一个骷髅海盗船长ComfyUI工作流
羚羊安上小白兔的门牙ComfyUI工作流
雪地里一只可爱的小老虎
在地铁站里一个迷茫的非主流姑娘
一座生动的点彩主义灯塔ComfyUI工作流
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!