<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 鼠标悬停图片动画的更多相关文章

  1. 15款css3鼠标悬停图片动画过渡特效

    分享15款css3鼠标悬停图片动画过渡特效.这是一款15款不同效果的css3 hover动画过渡效果代码.效果图如下: 在线预览   源码下载 实现的代码. html代码: <div class ...

  2. CSS3鼠标悬停图片动画

    鼠标放到图片上后: demo地址:demo div: <div class="wai"> <a href="#"> <div cl ...

  3. jQuery css3鼠标悬停图片显示遮罩层动画特效

    jQuery css3鼠标悬停图片显示遮罩层动画特效 效果体验:http://hovertree.com/texiao/jquery/39/ 效果图: 源码下载:http://hovertree.co ...

  4. HTML5+CSS3鼠标悬停图片特效

    点击预览效果            下载该特效: HTML5+CSS3鼠标悬停图片特效.zip 特效说明: 一款HTML5+CSS3鼠标悬停图片事件网页特效,集合了最流行鼠标悬停图片文字.图片动画移动 ...

  5. CSS3鼠标悬停图片上浮显示描述代码

    效果:http://hovertree.com/texiao/css3/20/ 效果图: 代码如下: <!doctype html> <html lang="zh" ...

  6. 基于html5鼠标悬停图片动画展示效果

    分享一款基于html5鼠标悬停图片动画展示效果.里面包含两款不同效果的html5图片展示效果.效果图如下: 在线预览   源码下载 实现的代码. html代码: <div class=" ...

  7. css3鼠标悬停图片边框线条动画特效

    css3鼠标经过内容区时,边框线条特效效果制作.   html: <div class="strength grWidth hidden"> <div class ...

  8. css3鼠标悬停图片渐显飞入效果

    body程序: <div id="bei"> <div id="img"><img src="xianzi.png&qu ...

  9. css3鼠标悬停图片抖动效果

    提供一个参考的链接 http://demo.lanrenzhijia.com/2015/pic0113/

随机推荐

  1. python while循坏和for循坏

    while循坏 while 条件: 条件成立,执行循坏体(注意,while循坏必须有结束条件,不然会进入死循坏) 简单做个演示: # -*- coding:utf-8 -*- # Author:覃振鸿 ...

  2. 【Java学习笔记之一】 java关键字及作用

    Java关键字及其作用 一. 总览: 访问控制 private protected public 类,方法和变量修饰符 abstract class extends final implements ...

  3. Python之字符串搜索和替换

    简单直接使用 str.replace() text="zzy is a beautiful boy" print(text.replace("boy",&quo ...

  4. 7G

  5. CICS FILE OPEN

    CEMT I CECD V FILE() GROUP() CEDA check error log in JESYSMSG FILE OPEN/CLOSE STATUS CICS ACTION res ...

  6. 2、Python 接口框架

    common:存放通用的工具类 config:存放配置文件信息 result:存放result.html run_suite.py:最后执行的文件 1.excel_util:利用 openpyxl 进 ...

  7. npm转淘宝镜像

    1.临时使用 npm --registry https://registry.npm.taobao.org install express 2.持久使用 npm config set registry ...

  8. linux,进行批量下载文件操作

     wget -i url.txt -P ./Photo 批量下载图片(一般是某个相册的图片) 首先先得到一张图片的地址如:www.example.com/pic/001.jpg 同相册的图片地址会有一 ...

  9. FTP的PORT和PASV的连接方式以及数据连接端口号计算

    FTP的PORT和PASV的连接方式以及数据连接端口号计算   PORT(自动)方法的连接途中是: 客户端向服务器的FTP端口(原始是21)发送连接请求,服务器领受连接,建立一条command链路. ...

  10. Delphi COM对象

    作者:巴哈姆特  http://www.cnpack.org(转载请注明出处并保持完整) 如果没有接触过COM对象的话,你会觉得接口真的很麻烦,也许会有:“还不如直接定义一个类更方便”的想法. 的确, ...