更多>
最新下载
24小时阅读排行榜
- 1 cad如何标注尺寸 完整教程:CAD中尺寸标注的设置与调整
- 2 C# 如何向xml文件中添加新节点
- 3 如何在 Excel 中使用 OFFSET 函数
- 4 Linux用户groups命令详解
- 5 解决 babel-preset-react-app 依赖缺失问题的完整指南
- 6 如何在VSCode中配置ESLint
- 7 php工具如何使用Symfony组件_php工具模块化开发的最佳实践
- 8 如何使用Windows性能计数器收集应用程序内存泄漏的详细诊断信息?
- 9 VSCode时间线功能:快速查看文件的本地修改历史
- 10 固态硬盘掉速严重怎么办?四个恢复性能的方法
- 11 python连接mysql数据库步骤
- 12 WPS2022自动保存间隔设置_WPS2022保存选项的自定义配置
- 13 瑞达写作官方网站主站 瑞达写作App官方下载中心进入
- 14 JS实现前端模糊搜索功能_javascript技巧
- 15 天猫2025双11红包雨怎么领取时间 天猫活动节点
更多>
最新教程
-
- Node.js 教程
- 6687 2025-08-28
-
- CSS3 教程
- 956281 2025-08-27
-
- Rust 教程
- 10603 2025-08-27
-
- Vue 教程
- 12827 2025-08-22
-
- PostgreSQL 教程
- 9787 2025-08-21
-
- Git 教程
- 4918 2025-08-21
鼠标hover悬停图片的css3动画特效
这是一款在鼠标hover图片的时候,使用transition和transform来制作图片说明文本和图标的CSS3动画特效,酷炫鼠标悬停图片css3动画特效代码。
.demo{
padding: 2em 0;
}
.box{
text-align: center;
overflow: hidden;
color: #fff;
position: relative;
}
.box:after{
content: "";
width: 100%;
height: 100%;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.08) 69%, rgba(0, 0, 0, 0.76) 100%);
position: absolute;
top: 0;
left: 0;
transition: all 0.5s ease 0s;
}
.box:hover:after{
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.01) 0%, rgba(0, 0, 0, 0.09) 11%, rgba(0, 0, 0, 0.12) 13%, rgba(0, 0, 0, 0.19) 20%, rgba(0, 0, 0, 0.29) 28%, rgba(0, 0, 0, 0.29) 29%, rgba(0, 0, 0, 0.42) 38%, rgba(0, 0, 0, 0.46) 43%, rgba(0, 0, 0, 0.53) 47%, rgba(0, 0, 0, 0.75) 69%, rgba(0, 0, 0, 0.87) 84%, rgba(0, 0, 0, 0.98) 99%, rgba(0, 0, 0, 0.94) 100%);
}
padding: 2em 0;
}
.box{
text-align: center;
overflow: hidden;
color: #fff;
position: relative;
}
.box:after{
content: "";
width: 100%;
height: 100%;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.08) 69%, rgba(0, 0, 0, 0.76) 100%);
position: absolute;
top: 0;
left: 0;
transition: all 0.5s ease 0s;
}
.box:hover:after{
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.01) 0%, rgba(0, 0, 0, 0.09) 11%, rgba(0, 0, 0, 0.12) 13%, rgba(0, 0, 0, 0.19) 20%, rgba(0, 0, 0, 0.29) 28%, rgba(0, 0, 0, 0.29) 29%, rgba(0, 0, 0, 0.42) 38%, rgba(0, 0, 0, 0.46) 43%, rgba(0, 0, 0, 0.53) 47%, rgba(0, 0, 0, 0.75) 69%, rgba(0, 0, 0, 0.87) 84%, rgba(0, 0, 0, 0.98) 99%, rgba(0, 0, 0, 0.94) 100%);
}
本站所有资源都是由网友投搞发布,或转载各大下载站,请自行检测软件的完整性!本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!如有侵权请联系我们删除下架,联系方式:admin@php.cn


