index.html
7.2 KB
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Font Awesome Animation</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="icon" type="image/png" href="favicon.png">
<link href='http://fonts.googleapis.com/css?family=Gilda+Display' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="styles/main.css">
<link rel="stylesheet" href="styles/monokai.syntax.css">
<link rel="stylesheet" href="vendor/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="../src/font-awesome-animation.css">
</head>
<body>
<header>
<h1><a href="https://github.com/l-lin/font-awesome-animation">Font Awesome Animation</a></h1>
<p>
Simple animations using <a href="http://fortawesome.github.io/Font-Awesome/">FontAwesome</a> and some CSS3.
</p>
<a href="https://github.com/l-lin/font-awesome-animation">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub">
</a>
<hr />
</header>
<div class="container" ng-controller="demoCtrl">
<article>
<h1>Getting started</h1>
<section>
<p>
Might not work on < IE10...
</p>
</section>
<section>
<h3>Download</h3>
<h4>Manually</h4>
<p>
The files can be downloaded from:
<ul>
<li>
Minified <a href="https://raw.githubusercontent.com/l-lin/font-awesome-animation/master/dist/font-awesome-animation.min.css">CSS</a> for production usage
</li>
<li>
Un-minified <a href="https://raw.githubusercontent.com/l-lin/font-awesome-animation/master/dist/font-awesome-animation.css">CSS</a> for development
</li>
</ul>
</p>
<h4>With <a href="http://bower.io">Bower</a></h4>
<br />
<div class="highlight">
<pre><code class="bash"><span class="nv">$ </span>bower install font-awesome-animation
</code></pre>
</div>
</section>
<section>
<h3>Installation</h3>
<p>
Include the CSS file in your <code>index.html</code> file:
<br /><br />
<div class="highlight">
<pre><code class="html"><span class="nt"><link</span> <span class="na">rel=</span><span class="s">"stylesheet"</span> <span class="na">href=</span><span class="s">"font-awesome-animation.min.css"</span><span class="nt">></span></code></pre>
</div>
</p>
</section>
</article>
<article>
<h1>Usage</h1>
<section>
<p>
Add the desired CSS class to the icon (or any element of your DOM).
</p>
<br />
<div class="demo">
<div class="animation">
<div class="font-animation">
<h3>
On DOM load
</h3>
</div>
<div class="font-animation">
<h3>
On hover
</h3>
</div>
</div>
<div class="animation">
<div class="font-animation">
<a href="#">
<i class="fa fa-wrench faa-wrench animated"></i>
faa-wrench animated
</a>
</div>
<div class="font-animation">
<a href="#">
<i class="fa fa-wrench faa-wrench animated-hover"></i>
faa-wrench animated-hover
</a>
</div>
</div>
<div class="animation">
<div class="font-animation">
<a href="#">
<i class="fa fa-bell faa-ring animated"></i>
faa-ring animated
</a>
</div>
<div class="font-animation">
<a href="#">
<i class="fa fa-bell faa-ring animated-hover"></i>
faa-ring animated-hover
</a>
</div>
</div>
<div class="animation">
<div class="font-animation">
<a href="#">
<i class="fa fa-envelope faa-horizontal animated"></i>
faa-horizontal animated
</a>
</div>
<div class="font-animation">
<a href="#">
<i class="fa fa-envelope faa-horizontal animated-hover"></i>
faa-horizontal animated-hover
</a>
</div>
</div>
<div class="animation">
<div class="font-animation">
<a href="#">
<i class="fa fa-thumbs-o-up faa-vertical animated"></i>
faa-vertical animated
</a>
</div>
<div class="font-animation">
<a href="#">
<i class="fa fa-thumbs-o-up faa-vertical animated-hover"></i>
faa-vertical animated-hover
</a>
</div>
</div>
<div class="animation">
<div class="font-animation">
<a href="#">
<i class="fa fa-warning faa-flash animated"></i>
faa-flash animated
</a>
</div>
<div class="font-animation">
<a href="#">
<i class="fa fa-warning faa-flash animated-hover"></i>
faa-flash animated-hover
</a>
</div>
</div>
<div class="animation">
<div class="font-animation">
<a href="#">
<i class="fa fa-thumbs-o-up faa-bounce animated"></i>
faa-bounce animated
</a>
</div>
<div class="font-animation">
<a href="#">
<i class="fa fa-thumbs-o-up faa-bounce animated-hover"></i>
faa-bounce animation-hover
</a>
</div>
</div>
<div class="animation">
<div class="font-animation">
<a href="#">
<i class="fa fa-spinner faa-spin animated"></i>
faa-spin animated
</a>
</div>
<div class="font-animation">
<a href="#">
<i class="fa fa-spinner faa-spin animated-hover"></i>
faa-spin animation-hover
</a>
</div>
</div>
<div class="animation">
<div class="font-animation">
<a href="#">
<i class="fa fa-plane faa-float animated"></i>
faa-float animated
</a>
</div>
<div class="font-animation">
<a href="#">
<i class="fa fa-plane faa-float animated-hover"></i>
faa-float animation-hover
</a>
</div>
</div>
<div class="animation">
<div class="font-animation">
<a href="#">
<i class="fa fa-heart faa-pulse animated"></i>
faa-pulse animated
</a>
</div>
<div class="font-animation">
<a href="#">
<i class="fa fa-heart faa-pulse animated-hover"></i>
faa-pulse animation-hover
</a>
</div>
</div>
<div class="animation">
<div class="font-animation">
<a href="#">
<i class="fa fa-envelope faa-shake animated"></i>
faa-shake animated
</a>
</div>
<div class="font-animation">
<a href="#">
<i class="fa fa-envelope faa-shake animated-hover"></i>
faa-shake animation-hover
</a>
</div>
</div>
</div>
</section>
</article>
</div>
<footer>
Designed and built with <i class="fa fa-heart faa-pulse animated"></i> by <a href="https://github.com/l-lin">Louis LIN</a>
</footer>
</body>
</html>