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/
随机推荐
- 将xml文件转为txt文件
import os import re import sys import glob import xml.etree.ElementTree as ET def xml_to_txt(indir,o ...
- MockServer
基于Flask实现的一个简易Mock平台,使用标准json结构体编写Mock Api https://github.com/yinquanwang/MockServer Key Features ...
- idea的spring配置
开始使用idea,开始的时候把相关的插件都禁用了,导致在建项目和configuration的时候不出现spring相关字样 到plugins中找到installed的插件,查看spring boot ...
- tar - tar 档案文件管理程序的 GNU 版本。
总览 tar [ - ] A --catenate --concatenate | c --create | d --diff --compare | r --append | t --list | ...
- layui的layer独立版报错“TypeError: i is not a function”的解决
折腾良久发现是引入jQuery顺序的问题. jQuery必须在layer引入之前引入.
- 单实例安装elastic和启动报错解决
下载 先到官网https://www.elastic.co/cn/downloads/past-releases/elasticsearch-5-5-2下载,我安装的是5.5.2的版本,其他版本直接访 ...
- Codeforces 251C Number Transformation DP, 记忆化搜索,LCM,广搜
题意及思路:https://blog.csdn.net/bossup/article/details/37076965 代码: #include <bits/stdc++.h> #defi ...
- element 点击切换按钮的颜色
1.html <el-button-group label="时间"> <el-button @click="seeHour" :type=& ...
- python 操作redis数据
python 操作redis 各种类型的数据 # encoding:utf-8 import redis import time def main(): """ redi ...
- HDU 6326 Problem H Monster Hunter
\(\mathtt{Problem H}\) \(\mathtt{Monster}\) \(\mathtt{Hunter}\) \(\mathcal{Description}\) 题目 给定一棵 \( ...