第一次看到html的动画效果,好神奇
来源:互联网 发布:淘宝上买避孕套干净吗 编辑:程序博客网 时间:2024/04/28 19:20
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>example</title>
<style type="text/css">
p{
padding: 4px;
border: thin solid black;
margin: 2px;
background-color: lightgray;
font-family: sans-serif;
}
#banana{
font-size: large;
border: medium solid black;
}
#banana:hover{
-webkit-animation-delay: 100ms;
-webkit-animation-duration: 500ms;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
-webkit-animation-name: 'GrowShrink';
}
@-webkit-keyframes GrowShrink{
from{
font-size: xx-small;
border: thin solid black;
background-color: red;
}
to{
font-size: x-large;
border: medium solid white;
background-color: green;
color: white;
padding: 4px;
}
}
</style>
</head>
<body>
<p>
There are lots of different kinds of fruit.there are over 500 varieties of <span id="banana">banana</span> alone.By the time we add the countless types of apples, orange,and other well-known fruit,we are faced with thousands of choices.
</p>
</body>
</html>
<html>
<head>
<meta charset="utf-8">
<title>example</title>
<style type="text/css">
p{
padding: 4px;
border: thin solid black;
margin: 2px;
background-color: lightgray;
font-family: sans-serif;
}
#banana{
font-size: large;
border: medium solid black;
}
#banana:hover{
-webkit-animation-delay: 100ms;
-webkit-animation-duration: 500ms;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
-webkit-animation-name: 'GrowShrink';
}
@-webkit-keyframes GrowShrink{
from{
font-size: xx-small;
border: thin solid black;
background-color: red;
}
to{
font-size: x-large;
border: medium solid white;
background-color: green;
color: white;
padding: 4px;
}
}
</style>
</head>
<body>
<p>
There are lots of different kinds of fruit.there are over 500 varieties of <span id="banana">banana</span> alone.By the time we add the countless types of apples, orange,and other well-known fruit,we are faced with thousands of choices.
</p>
</body>
</html>
0 0
- 第一次看到html的动画效果,好神奇
- UIView+Genie神奇效果动画的使用
- 第一次接触到Linq,好神奇~
- 第一次在西安看到下雪,好冷~
- 看到的好文章
- 看到的好句!!
- 神奇+好用的logback
- 神奇好用的函数
- 算法优化的神奇效果
- 和神奇code的第一次亲密接触
- html 图形绘制动画效果
- HTML+CSS实现动画效果
- HTML卡片经过动画效果
- 看到 HTML 5 的感慨
- Html的第一次小结
- 全选/反选第一次好用,二次没有效果的原因
- 神奇效果
- 数字的世界——好神奇
- 【C语言提高42】结构体的高级话题:偏移量
- LINUX、C#下使用DES算法CBC模式进行对称加密、解密
- ###xcode开发iOS的app可能用到的几个文件夹路径
- php array
- SpriteKit工程简读
- 第一次看到html的动画效果,好神奇
- 一点js
- 关于自己对2016年的一些想法
- Swift 写个简单的UITableView
- UPnP协议编程实践(一)
- Java工作流引擎学习----JBPM(一)
- LeetCode N-Queens
- 插入排序
- 快播案走歪成网络狂欢:乐事简直神躺枪