css3 鼠标悬停图片动画
<div class="grid">
<figure class="effect-milo">
<img src="img/3.jpg"/>
<figcaption>
<h2>Faithful <span>Milo</span></h2>
<p>Milo went to the woods. He took a fun ride and never came back.</p>
</figcaption>
</figure>
</div>
.effect-milo{
overflow: hidden;
backface-visibility: hidden;
float: left;
margin:;
width: 480px;
height: 360px;
margin-right: 55px;
position: relative;
cursor: pointer;
background: #2e5d5a;
}
.effect-milo img{
/*width: 100%;*/
height: 100%;
width: calc(100% + 30px);
transform: translate3d(-30px,0,0);
-webkit-transform: translate3d(-30px,0,0);
-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
transition: opacity 0.35s,transform 0.35s;
backface-visibility: hidden;
}
.effect-milo figcaption{
position: absolute;
top:;
left:;
width: 100%;
height: 100%;
text-align: center;
}
.effect-milo figcaption h2{
position: absolute;
top: 74%;
left: 20%;
width: 100%;
height: 100%;
font-size: 30px;
font-weight:;
text-transform: uppercase;
}
.effect-milo figcaption span{
font-weight:; }
.effect-milo figcaption p{
position: absolute;
top: 10%;
left: 10%;
width: 40%;
text-align: right;
border-right: 1px solid #fff;
padding-right: 10px;
transform: translate3d(-30px,0,0);
-webkit-transform: translate3d(-30px,0,0);
transition: opacity 0.35s,transform 0.35s;
-webkit-transition: opacity 0.35s,transform 0.35s;
opacity:;
}
.effect-milo:hover img {
transform: translate3d(0,0,0);
-webkit-transform: translate3d(0,0,0);
opacity: .6;
}
.effect-milo:hover p{
transform: translate3d(0,0,0);
-webkit-transform: translate3d(0,0,0);
opacity:;
}
效果图
原图
鼠标悬浮效果
<div class="grid">
<figure class="effect-chico">
<img src="img/15.jpg"/>
<figcaption>
<h2>Silly <span>Chico</span></h2>
<p>Chico's main fear was missing the morning bus.</p>
</figcaption>
</figure>
</div>
.effect-chico{
overflow: hidden;
backface-visibility: hidden;
float: left;
margin:;
width: 480px;
height: 360px;
margin-right: 55px;
position: relative;
cursor: pointer;
background: #3085a3;
}
.effect-chico img{
width: 100%;
height: 100%;
-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
transition: opacity 0.35s, transform 0.35s;
-webkit-transform: scale(1.12);
transform: scale(1.12);
}
.effect-chico figcaption{
position: absolute;
top:;
left:;
width: 100%;
height: 100%;
text-align: center;
}
.effect-chico figcaption h2{
position: absolute;
top: 23%;
left:;
width: 100%;
height: 100%;
font-size: 30px;
font-weight:;
text-transform: uppercase;
}
.effect-chico figcaption span{
font-weight:;
}
.effect-chico figcaption p{
position: absolute;
top: 39%;
left: 25%;
width: 50%;
opacity:;
-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
transition: opacity 0.35s,transform 0.35s;
-webkit-transform: scale(1.5);
transform: scale(1.5);
}
.effect-chico figcaption:after{
content: '';
position:absolute;
top: 30px;
bottom: 30px;
left: 30px;
right: 30px;
border:1px solid #fff;
opacity:;
-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
transition: opacity 0.35s,transform 0.35s;
-webkit-transform: scale(1.1);
transform: scale(1.1);
} .effect-chico:hover img{
opacity: .7;
-webkit-transform: scale(1);
transform: scale(1);
}
.effect-chico:hover p,
.effect-chico:hover figcaption:after{
opacity:;
-webkit-transform: scale(1);
transform: scale(1);
}
原图
鼠标悬浮效果图
css3 鼠标悬停图片动画的更多相关文章
- 15款css3鼠标悬停图片动画过渡特效
分享15款css3鼠标悬停图片动画过渡特效.这是一款15款不同效果的css3 hover动画过渡效果代码.效果图如下: 在线预览 源码下载 实现的代码. html代码: <div class ...
- CSS3鼠标悬停图片动画
鼠标放到图片上后: demo地址:demo div: <div class="wai"> <a href="#"> <div cl ...
- jQuery css3鼠标悬停图片显示遮罩层动画特效
jQuery css3鼠标悬停图片显示遮罩层动画特效 效果体验:http://hovertree.com/texiao/jquery/39/ 效果图: 源码下载:http://hovertree.co ...
- HTML5+CSS3鼠标悬停图片特效
点击预览效果 下载该特效: HTML5+CSS3鼠标悬停图片特效.zip 特效说明: 一款HTML5+CSS3鼠标悬停图片事件网页特效,集合了最流行鼠标悬停图片文字.图片动画移动 ...
- CSS3鼠标悬停图片上浮显示描述代码
效果:http://hovertree.com/texiao/css3/20/ 效果图: 代码如下: <!doctype html> <html lang="zh" ...
- 基于html5鼠标悬停图片动画展示效果
分享一款基于html5鼠标悬停图片动画展示效果.里面包含两款不同效果的html5图片展示效果.效果图如下: 在线预览 源码下载 实现的代码. html代码: <div class=" ...
- css3鼠标悬停图片边框线条动画特效
css3鼠标经过内容区时,边框线条特效效果制作. html: <div class="strength grWidth hidden"> <div class ...
- css3鼠标悬停图片渐显飞入效果
body程序: <div id="bei"> <div id="img"><img src="xianzi.png&qu ...
- css3鼠标悬停图片抖动效果
提供一个参考的链接 http://demo.lanrenzhijia.com/2015/pic0113/
随机推荐
- Python 如何debug
一.常见错误: 1.漏了末尾的冒号,如 if语句,循环语句,定义函数 2.缩进错误,该缩进的时候没有缩进 3.把英文符号写成中文符号,如: ' ' () , 4.字符串拼接,把字符串和数字拼接一起 ...
- 晒订单赢图灵图书,《第一行代码——Android》福利活动劲爆来袭!
版权声明:本文出自郭霖的博客,转载必须注明出处. https://blog.csdn.net/sinyu890807/article/details/28863515 (已结束) 我的著作<第一 ...
- neo4j APOC与自定义存储过程环境搭建
neo4j APOC与自定义存储过程环境搭建 主要参考资料:APOC官网https://neo4j-contrib.github.io/neo4j-apoc-procedures/APOC介绍 PPT ...
- 第五章 配置私有仓库Harbor
一.Harbor 安装(尚硅谷资料) 安装:Harbor 官方地址:官方地址:https://github.com/vmware/harbor/releases 1.解压软件包 tar xvf har ...
- js两个数组去重后,绑定控件,并支持模糊搜索数组项以及数组互移
设计大概是这个样子的,很简单,两个div,两个互移按钮,一个搜索框,要求搜索框输入时,触发待选框的搜索项 <input class="form-control" placeh ...
- TCP协议中的三次握手和四次挥手(图解)(转)
转自:http://blog.csdn.net/whuslei/article/details/6667471 建立TCP需要三次握手才能建立,而断开连接则需要四次握手.整个过程如下图所示: 先来看看 ...
- matlab 生成.exe文件 转
本文链接:https://blog.csdn.net/qq_20823641/article/details/51863737 如何将MATLAB程序编译成独立可执行的程序?如何将编译好的独立可执行程 ...
- Dubbox服务的提供方开发
(1)创建Maven工程(WAR)dubboxdemo-service ,在pom.xml中引入依赖 <project xmlns="http://maven.apache.org/ ...
- nc临时开启端口并监听
port="6379 3306 27017 4505 4506 24007 24008 49152" #while true #do for i in $port do isexi ...
- Delphi ResourceString的用法
在Delphi编程的那段“古老”的日子里(就是在版本4之前),在程序中使用字符串有两个基本的方法.你可以使用字符串将它们嵌入到源程序中,例如: MessageDlg( 'Leave your stin ...