<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. Django中的缓存机制

    概述       对于中等流量网站来说,尽可能的减少开销是必要的.缓存数据就是为了保存那些需要很多计算资源大的结果,这样的的话就不必在下次重复消耗计算资源.     Django自带了一个健壮的缓存系 ...

  2. Arcpy 将要素类添加到当前工作窗口(内容列表)

    test1layer=arcpy.mapping.Layer( folder+"\\"+"result.shp") mxd = arcpy.mapping.Ma ...

  3. 【目录】mysql 进阶篇系列

    随笔分类 - mysql 进阶篇系列 mysql 开发进阶篇系列 55 权限与安全(安全事项 ) 摘要: 一. 操作系统层面安全 对于数据库来说,安全很重要,本章将从操作系统和数据库两个层面对mysq ...

  4. spring_AOP的注解开发

    logger日志类: package cn.mepu.utils; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.la ...

  5. android绑定usb前后摄像头

    在Android的系统会有前置摄像头和后置摄像头的定义,摄像头分为SOC类型的摄像头和USB这一类的摄像头,接下要分析就是USB摄像头这一类 . 一般在android或者linux系统中分析一个模块, ...

  6. JS对象 屏幕分辨率的高和宽 window.screen 对象包含有关用户屏幕的信息。 1. screen.height 返回屏幕分辨率的高 2. screen.width 返回屏幕分辨率的宽

    屏幕分辨率的高和宽 window.screen 对象包含有关用户屏幕的信息. 1. screen.height 返回屏幕分辨率的高 2. screen.width 返回屏幕分辨率的宽 注意: 1.单位 ...

  7. KiCAD实用操作

    KiCAD实用操作之一:自动编辑线宽 今天偶然间发现的一个比较实用的功能,算是KiCAD的一个优点吧(或许是在AD上面没发现):当整个PCB布完线或者在布线过程中,我们有可能需要对某个线的宽度进行调整 ...

  8. bash命令根据历史记录补全

    用zsh比较方便的一个功能是在找之前用过的命令时可以先输入一部分命令作为过滤条件, 比如,想找 docker run 开头的历史命令,只需要键入 docker run 然后按 ↑ 进行选择. 但是在用 ...

  9. 前后台 工作切换---------------Linux 任务管理器(一)

    继续下一章... 发现了一个好东东.就是前后台的切换.例如我们现在要vim一个文件.然后又要查找一些命令的时候,以前不知道,都是退出后,查完了,在vim进入.现在我们可以将该vim拿到后台,然后查完了 ...

  10. nodejs 进阶:图片缩小

    demo 效果: 代码: /** * Created by ZXW on 2017/10/30. */ var fs = require('fs'); var gm = require('gm'); ...