-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanimation.html
116 lines (114 loc) · 5.46 KB
/
animation.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>动画与特效 - Kico Style</title>
<meta name="theme-color" content="#3498db">
<link href="css/doc.css" rel="stylesheet" type="text/css"/>
<link href="css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
<meta name="viewport" content="width=device-width, maximum-scale=1, initial-scale=1"/>
</head>
<body>
<header>
<div class="wrap">
<div class="head-title">
<h3 class="site-title">Kico Style</h3>
<div class="toggle-btn"></div>
</div>
<ul class="head-menu">
<li><a href="index.html">开始</a></li>
<li><a href="style.html">全局样式</a></li>
<li><a href="components.html">附加组件</a></li>
<li class="active"><a href="animation.html">动画与特效</a></li>
<li><a href="https://www.binkic.com" target="_blank">缤奇官网</a></li>
</ul>
</div>
</header>
<main class="container">
<div class="docs-title">
<div class="wrap">
<h1>动画与特效</h1>
<p>Kico Style 的动画特效,让你的网页元素变的更加有趣!</p>
</div>
</div>
<div class="docs-content">
<div class="wrap">
<section id="animation">
<div class="section-title">
<h2>开始使用</h2>
</div>
<div class="section-content">
<p>先添加类 <code>ani</code>,以开始为元素设置动画。</p>
<p>添加 <code>infinite</code> 扩展类可以让动画循环播放。</p>
<p>添加 <code>loop</code> 扩展类可以让动画播放完毕之后原路返回。</p>
<p>添加 <code>slow</code>、<code>fast</code> 扩展类可以设置动画播放的速度(慢为 2 秒,默认为 1 秒,快为 0.5 秒)</p>
</div>
</section>
<section>
<div class="section-title">
<h2>缩放动画:</h2>
</div>
<div class="section-content">
<div class="show-animation">
<button class="btn yellow ani scale-small infinite">从大变小</button>
<button class="btn yellow ani scale-large infinite">从小变大</button>
</div>
<pre><button class="btn yellow ani scale-small infinite">从大变小</button>
<button class="btn yellow ani scale-large infinite">从小变大</button></pre>
</div>
</section>
<section>
<div class="section-title">
<h2>淡入淡出动画:</h2>
</div>
<div class="section-content">
<div class="show-animation">
<button class="btn yellow ani fade-in infinite">一般淡出</button>
<button class="btn yellow ani fade-in-top infinite">向上淡出</button>
<button class="btn yellow ani fade-in-bottom infinite">向下淡出</button>
<button class="btn yellow ani fade-in-left infinite">向左淡出</button>
<button class="btn yellow ani fade-in-right infinite">向右淡出</button>
</div>
<pre><button class="btn yellow ani fade-in infinite">一般淡出</button>
<button class="btn yellow ani fade-in-top infinite">向上淡出</button>
<button class="btn yellow ani fade-in-bottom infinite">向下淡出</button>
<button class="btn yellow ani fade-in-left infinite">向左淡出</button>
<button class="btn yellow ani fade-in-right infinite">向右淡出</button></pre>
</div>
</section>
<section>
<div class="section-title">
<h2>旋转动画:</h2>
</div>
<div class="section-content">
<div class="show-animation">
<button class="btn yellow ani rotate infinite">旋转</button>
<button class="btn yellow ani slide-left-right infinite">左右摇动</button>
</div>
<pre><button class="btn yellow ani rotate infinite">旋转</button>
<button class="btn yellow ani slide-left-right infinite">左右摇动</button></pre>
</div>
</section>
<section>
<div class="section-title">
<h2>位移动画:</h2>
</div>
<div class="section-content">
<div class="show-animation">
<button class="btn yellow ani up-and-down infinite">上下运动</button>
<button class="btn yellow ani left-and-right infinite">左右运动</button>
</div>
<pre><button class="btn yellow ani up-and-down infinite">上下运动</button>
<button class="btn yellow ani left-and-right infinite">左右运动</button></pre>
</div>
</section>
</div>
</div>
</main>
<footer>
<p>© 2017 By <a href="https://hi-paul.space" title="保罗的博客" target="_blank">Dreamer-Paul</a>.</p>
</footer>
<script src="js/docs.js"></script>
<script src="js/binkic.js"></script>
</body>
</html>