web299.com
全部
教育
语言/资格考试
法律
互联网
政务民生
Word模板
Excel模板
PPT模板
网页特效
小程序模板
网站模板
首页
教育
语言/资格考试
法律
互联网
政务民生
Word模板
Excel模板
PPT模板
网页特效
小程序模板
网站模板
当前位置:
首页
>
网页特效
>
动画效果
炫酷CSS3鼠标hover动画特效
分类:
动画效果
日期:
2024-05-14
点击(0)
评论(0)
演 示
免费下载
简介
在页面中引入bootstrap.min.css和font-awesome.min.css文件。 ```html
``` ##### HTML结构 使用该CSS3鼠标hover动画特效的基本HTML结构如下: ```html
标题
描述文本
标题
描述文本
``` ##### CSS样式 然后为该CSS3鼠标hover动画特效添加下面的CSS样式代码。 ```html .box{ overflow: hidden; box-shadow: 0 0 3px rgba(0,0,0,0.3); position: relative; } .box:before{ content: ""; background: #000; box-shadow: 0 0 20px #fff; position: absolute; top: 0; left: 50%; bottom: 0; right: 50%; z-index: 1; transition: all 0.3s ease-out 0.3s; } .box:hover:before{ left: 0; right: 0; box-shadow: 0 0 0 #fff; transition-delay: 0s; } .box img{ width: 100%; height: auto; transition: all 0.8s ease-out 0s; } .box:hover img{ opacity: 0.2; } .box .box-content{ width: 100%; height: 100%; position: absolute; top: 0; left: 0; z-index: 2; } .box .title{ padding: 25px; margin: 0; font-size: 24px; color: #fff; opacity: 0; transition: all 0.35s ease-out 0s; } .box .icon{ list-style: none; padding: 0 25px; margin: 0; opacity: 0; transition: all 0.35s ease-out 0s; } .box .icon li{ display: inline-block; } .box .icon li a{ display: block; width: 35px; height: 35px; line-height: 35px; border-radius: 50%; background: transparent; text-align: center; font-size: 18px; color: #fff; margin-right: 10px; overflow: hidden; position: relative; transition: all 0.5s ease 0s; } .box .icon li a:after{ content: ""; width: 100%; height: 100%; background: #c92853; border-radius: 50%; position: absolute; top: -100%; left: 0; z-index: -1; transition: all 0.3s ease 0s; } .box .icon li a:hover:after{ top: 0; } .box .description{ padding: 25px 25px 25px 60px; margin: 0; font-size: 12px; color: #fff; letter-spacing: 1px; text-align: right; opacity: 0; position: absolute; bottom: 0; transition: all 0.35s ease-out 0s; } .box:hover .title, .box:hover .icon, .box:hover .description{ opacity: 0.7; transition-delay: 0.3s; } @media only screen and (max-width:990px){ .box{ margin-bottom: 30px; } } ```
相关推荐
html5浪漫粒子表白文字特效
SlidesJS幻灯片特效
html5瀑布流相册特效
css3 svg实现的情人节表白鲜花动画特效
t-scroll.js基于ES6的DOM元素,过渡动画库插件
纯js写省市区三级联动效果
广告
广告