更多>
最新下载
西山居首页jQuery焦点图代码
西山居首页jQuery焦点图代码是一款带文字描述,左右箭头,索引按钮,自动轮播切换的jQuery特效代码。本作品由【站长素材】收集整理,转载请注明出处!
0
2026-01-25
24小时阅读排行榜
- 1 php连接数据库提示could not connect_php连接失败通用排查【方案】
- 2 php连接数据库中文乱码咋处理_php数据库中文编码设置【技巧】
- 3 html5嵌入音频快进卡顿_html5嵌入音频快进优化【方案】
- 4 服务器随机丢包但 ping 延迟正常的 perf + bpftrace 抓包定位
- 5 php统计数据图表加载慢咋优化_php缓存数据提速法【技巧】
- 6 php创建文件带内容怎么做_php写入内容建文件法【实例】
- 7 php怎么创建mysql数据库_php创建mysql数据库基础教程【步骤】
- 8 php数据库怎么进lnmp环境的mysql_php连lnmpmysql法【教程】
- 9 php数据库怎么进加密的mysql_php解密连mysql法【步骤】
- 10 php连接达梦报端口不通咋办_php连达梦网络排查法【方案】
- 11 html5播放rtsp怎么切换源_html5rtsp多源切换法【交互】
- 12 如何用 CSS clip-path 创建四角汇聚的全宽网页三角分割布局
- 13 trae里php的zend_extension怎么加_trae加zend扩展法【技巧】
- 14 ios调用html5弹窗被拦截咋办_ios解除弹窗拦截法【方案】
- 15 php实现班级通信录导入重复数据_php去重导入处理方法【技巧】
更多>
最新教程
-
- Node.js 教程
- 16082 2025-08-28
-
- CSS3 教程
- 1546459 2025-08-27
-
- Rust 教程
- 23226 2025-08-27
-
- Vue 教程
- 25695 2025-08-22
-
- PostgreSQL 教程
- 22182 2025-08-21
-
- Git 教程
- 9171 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
