css3 keyframes animation
html,body,div,span,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,address,big,cite,code,del,em,font,img,ins,small,strong,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend{margin:0;padding:0;}ol,ul{list-style:none;}:focus{outline:0;}a img{border:0;}img{vertical-align:top;}table{empty-cells:show;}ins{text-decoration:none;}del{text-decoration:line-through;}em{font-style:normal;}button::-moz-focus-inner,input[type="reset"]::-moz-focus-inner,input[type="button"]::-moz-focus-inner,input[type="submit"]::-moz-focus-inner,input[type="file"]>input[type="button"]::-moz-focus-inner{border:none;padding:0;}.clearfix{*zoom:1;}.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}body{font:14px/1.5 "宋体";background:#fff;}a{color:#000;text-decoration:none;}a:hover{ text-decoration:underline;}.fl{float:left;}.fr{float:right;}.hide{display:none;}.show{display:block}.ad{display:block;height:auto;clear:both;margin-bottom:8px;overflow:hidden;zoom:1;}
#wrap{width:1000px;
height:auto;
clear:both;
margin:0 auto;
padding-left:12px;
padding-right:12px;
overflow:hidden;
*zoom:1;}
.item-a li{_display:inline;float:left;margin:0 0 10px 7px}
.item-a .pic{width:312px;height:184px;border:solid 6px #e6e6e6}
@keyframes pulse {
0% {
transform:scale(1)
}
50% {
transform:scale(1.3)
}
100% {
transform:scale(1)
}
}
@-webkit-keyframes pulse {
0% {
-webkit-transform:scale(1)
}
50% {
-webkit-transform:scale(1.3)
}
100% {
-webkit-transform:scale(1)
}
}
@-moz-keyframes pulse {
0% {
-moz-transform:scale(1)
}
50% {
-moz-transform:scale(1.1)
}
100% {
-moz-transform:scale(1)
}
}
.item-a li:hover .pic{
border:solid 6px #c00202;
animation:pulse 1s 0s ease both;
-webkit-animation:pulse 1s 0s ease both;
-moz-animation:pulse 1s 0s ease both;}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml%22%3E%3Chead>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<title>爱漫莎</title>
<link href="css/master.css" rel="stylesheet" />
<body>
<div id="wrap">
<ul class="item-a">
<li>
<p class="pic"><a href=""><img src="%E7%88%B1%E6%BC%AB%E8%8E%8E_files/index_001.jpg" height="184" width="312"></a></p>
</li>
<li>
<p class="pic"><a href=""><img src="%E7%88%B1%E6%BC%AB%E8%8E%8E_files/index_002.jpg" height="184" width="312"></a></p>
</li>
<li>
<p class="pic"><a href=""><img src="%E7%88%B1%E6%BC%AB%E8%8E%8E_files/index_003.jpg" height="184" width="312"></a></p>
</li>
<li>
<p class="pic"><a href=""><img src="%E7%88%B1%E6%BC%AB%E8%8E%8E_files/index_004.jpg" height="184" width="312"></a></p>
</li>
<li>
<p class="pic"><a href=""><img src="%E7%88%B1%E6%BC%AB%E8%8E%8E_files/index_005.jpg" height="184" width="312"></a></p>
</li>
<li>
<p class="pic"><a href=""><img src="%E7%88%B1%E6%BC%AB%E8%8E%8E_files/index_006.jpg" height="184" width="312"></a></p>
</li>
</ul>
</div>
</body></html>
css3 keyframes animation的更多相关文章
- CSS3 动画 animation和@keyframes
CSS3 @keyframes 规则 如需在 CSS3 中创建动画,您需要学习 @keyframes 规则. @keyframes 规则用于创建动画.在 @keyframes 中规定某项 CSS 样式 ...
- css3 transition animation nick
时光转眼即逝,又到周六了,今天写点某部分人看不起的css玩玩! 转换 转换属性transform: 浏览器前缀: -webkit-transform;-o-transform;-moz-transfo ...
- CSS3 @keyframes 规则
今天来给大家分享一下CSS3 @keyframes 规则! 在你了解CSS3 @keyframes 规则时我先来给大家说说什么是css3中的动画 动画是使元素从一种样式逐渐变化为另一种样式的效果. 您 ...
- css3中Animation
CSS3我在5年之前就有用了,包括公司项目都一直在很前沿的技术. 最近在写慕课网的七夕主题,用了大量的CSS3动画,但是真的沉淀下来仔细的去深入CSS3动画的各个属性发现还是很深的,这里就写下关于帧动 ...
- 第100天:CSS3中animation动画详解
CSS3属性中有关于制作动画的三个属性:Transform,Transition,Animation: 一.Animation定义动画 CSS3的Animation是由“keyframes”这个属性来 ...
- 模仿百度首页“元宵节汤圆”动图,并实现360°不停旋转(CSS3的animation动画效果)
模仿百度首页“元宵节汤圆”动图,并实现360°不停旋转(CSS3的animation动画效果) 效果图: 切图地址: https://ss1.bdstatic.com/5eN1bjq8AAUYm2zg ...
- CSS3 & transition & animation
CSS3 & transition & animation https://developer.mozilla.org/en-US/docs/Web/CSS/transition-ti ...
- 前端CSS3动画animation用法
前端CSS3动画animation用法 学习如下动画属性 @keyframes animation-name animation-duration animation-delay animation- ...
- CSS3 @keyframes 规则以及animation介绍和各种动画样式说明
一个好网站:http://www.jqhtml.com/ 如需在 CSS3 中创建动画,您需要学习 @keyframes 规则. @keyframes 规则用于创建动画.在 @keyframes 中规 ...
随机推荐
- windows c dll的创建与调用
DLL代码: // TestDynamic.cpp: implementation of the TestDynamic class. // ///////////////////////////// ...
- 多命令顺序执行、管道符 ; && || |
多命令顺序执行:
- 【CC评网】2013.第42周 话说时间管理
时间管理 工作几年之后,大家都会有意识的培养时间管理的概念:但如何真正做到位,并持续坚持,并不是一件容易的事: 虽然关注时间管理已有几年,但目前我对于时间的利用并不高效: 理论上的东西就是那些,但真正 ...
- CSS笔记(七)列表
CSS 列表属性允许你放置.改变列表项标志,或者将图像作为列表项标志. 参考:http://www.w3school.com.cn/css/css_list.asp 实例: <html> ...
- 泛型IComparer<T>排序
class Program { static void Main(string[] args) { GetListTest(); } private static void GetListTest() ...
- flex中实现自动换行
有时候由于label .button等控件中需要用到text属性显示出文本,文本太长就涉及到换行问题,解决方法如下 在actionScript 需要用“ ”实现换行,在需要换行的地方加上它就OK. ...
- iOS - Swift NSPoint 位置
前言 结构体,这个结构体用来表示事物的一个坐标点. public typealias NSPoint = CGPoint public struct CGPoint { public var x: C ...
- JS事件中的对象
在触发任何事件时都会产生一个对象.如:DOM事件,window事件等,都会产生一个对象,该对象就是当前元素的事件对象. DOM事件对象 <body> <input type=&quo ...
- 疯狂java讲义之流程控制与数组
while package ch4; /** * Created by Jiqing on 2016/11/6. */ public class While { public static void ...
- JavaSE复习_1 Java的基本格式和运算符
△.代表在当前目录.classpath能在任何路径下访问类文件. △单行注释可以嵌套,多行注释不能嵌套 △java中的标识符只能有数字,字母,$和_,其他的符号都是错误的,不合法的.其中数字不能是开头 ...