<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. 转 Jmeter业务请求比例

    [转载]Jmeter业务请求比例1   ps:文章转自订阅号“测试那点事儿”,链接:https://mp.weixin.qq.com/s/qVD4iNO0QqRIwAIq9_E_Kw   方法二: 可 ...

  2. python基础之数据类型初始

    变量 贴标签 变量名规则:只能是字母下划线和数字组成,不能以数字开头,不能和关键字同名,不能使用拼音和中文,具有可描述性,区别大小写,变量名推荐写法:驼峰提,下划线(官方推荐) 变量赋值 常量 特性: ...

  3. mongo聚合命令

    db.getCollection('chat').aggregate([ { "$match": { "last": 1, "type": ...

  4. 使用allure2生成精美报告

    安装:brew install allure pip install allure-pytest 在测试执行期间收集结果 pytest -s –q --alluredir=./result/ 测试完成 ...

  5. spring基于xml的事务控制

    opm配置 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http: ...

  6. Caused by: java.util.MissingResourceException: Can't find bundle for base name javax.servlet.LocalStrings, locale zh_CN

    这个是很早以前的一个bug了,最近开始用idea发现追源码相当方便,于是结合网上的解决方案以及自己的判断追踪一下原因,当然没有深究,只是根据提示一直追而已:先说一下解决方案: <dependen ...

  7. iOS开发系列-Block

    概述 在iOS 4.0之后,block横空出世,它本身封装了一段代码并将这段代码当做变量,通过block()的方式进行回调.这不免让我们想到在C函数中,我们可以定义一个指向函数的指针并且调用. #im ...

  8. 【教程】虚拟机安装CentOS 7 ping不通百度/并且使用Xshell 连接

    最近需要在电脑虚拟机上安装CentOS 7 ,之前对虚拟机并不熟悉,捅咕了两天时间,如果终于安装成功. 之前遇到的坑:安装完CentOS 7 之后一直ping 不通www.baidu.com 网上查询 ...

  9. cmake 加入调试信息

    1 首先在CMakeLists.txt中加入 SET(CMAKE_BUILD_TYPE "Debug")1在下面加入: SET(CMAKE_CXX_FLAGS_DEBUG &quo ...

  10. nginx进行获取阿里云slb真实ip配置操作

    环境: 1.使用阿里云的slb进行配置nginx,nginx无法获取用户的真实ip解决方案 参考阿里云: https://help.aliyun.com/knowledge_detail/40535. ...