-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
328 lines (309 loc) · 12.7 KB
/
index.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
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
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Animation in CSS/JS</title>
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="pafiu.me" />
<meta name="twitter:creator" content="@pafiume" />
<meta property="og:url" content="http://pafiu.me/animation" />
<meta property="og:title" content="Understanding and Using Animation in CSS and JS" />
<meta property="og:description" content="Explore a few ways we can implement animation, in websites and applications, using CSS and JavaScript" />
<meta property="og:image" content="assets/preview-lg.png" />
<link rel="stylesheet" href="css/animate.css">
<link rel="stylesheet" href="css/hover.css">
<link rel="stylesheet" href="css/woah.css">
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css">
<link href="https://fonts.googleapis.com/css?family=Limelight|Open+Sans" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
</head>
<body>
<div class="section animated fadeIn">
<div class="section-inner">
<h1 class="h1 btn-big btn-info btn-begin position-absolute animated pulse infinite rounded-circle d-flex align-content-center justify-content-center">Begin</h1>
<div class="title d-none animated fadeIn animation-duration-3">
<h1 class="h1 comeInStyle">Understanding</h1>
<h1 class="h1 flyIn">and Using</h1>
<h1 class="h1 wowzors">Animation</h1>
<h1 class="h1 simpleEntrance">In CSS and JS</h1>
</div>
<div class="title d-none footer animated fadeIn animation-delay-1500 animation-duration-3">
<h4 class="h4"><i class="fas fa-arrow-up animated bounce infinite animation-delay-500"></i> Use arrow keys to progress <i class="fas fa-arrow-down animated bounce infinite"></i></h4>
</div>
</div>
</div>
<div class="section secondary">
<div class="section-inner animated fadeIn animation-delay-500">
<div class="d-flex">
<h1 class="h1">What is </h1>
<h1 class="h1 animated bounce infinite">Animation</h1>
<h1 class="h1">?</h1>
</div>
<div class="body">
<h3 class="h3 animated fadeInRight animation-delay-750">Wikipedia says...</h3>
<h2 class="h2 animated fadeInRight animation-delay-1000">
"Animation is a dynamic medium
<br>in which images or objects
<br>are manipulated to appear
<br>as moving images."
</h2>
</div>
</div>
</div>
<div class="section secondary">
<div class="section-inner animated fadeIn animation-delay-500">
<div class="d-flex">
<h1 class="h1">Why use </h1>
<h1 class="h1 animated flash infinite animation-duration-3">Animation</h1>
<h1 class="h1">?</h1>
</div>
<ol class="body">
<li class="animated list-text fadeInRight animation-delay-500">To add visual interest</li>
<li class="animated list-text fadeInRight animation-delay-750">Act as a response</li>
<li class="animated list-text fadeInRight animation-delay-1000">Act as a notification</li>
</ol>
</div>
</div>
<div class="section secondary">
<div class="section-inner animated fadeIn animation-delay-500">
<h1 class="h1">Animation in CSS</h1>
<ol class="body">
<li class="animated list-text fadeInRight animation-delay-500">Pseudo Selectors</li>
<li class="animated list-text fadeInRight animation-delay-750">Transition Property</li>
<li class="animated list-text fadeInRight animation-delay-1000">Keyframes</li>
</ol>
</div>
</div>
<div class="section secondary">
<div class="section-inner animated fadeIn animation-delay-500">
<h1 class="h1">Pseudo Selectors</h1>
<div class="d-flex body">
<div class="shadow container-img-venus img-venus-block animated">
<span class="img-venus-text">Hover over me!</span>
<div class="img-venus">
<img class="img-venus-pseudo" src="assets/venus-frame.png" alt="">
</div>
</div>
<figure class="figure code-block">
<pre>
<code class="code">
.img-venus-pseudo:hover {
filter: blur(20px);
-webkit-filter: blur(20px);
}
</code>
</pre>
</figure>
</div>
</div>
</div>
</div>
<div class="section secondary">
<div class="section-inner animated fadeIn animation-delay-500">
<h1 class="h1">Pseudo Selectors</h1>
<h3 class="h3">Paired with the Transition Property</h3>
<div class="d-flex body">
<div class="shadow container-img-venus img-venus-block animated">
<span class="img-venus-text">Hover over me!</span>
<div class="img-venus">
<img class="img-venus-pseudo img-venus-pseudo-transition" src="assets/venus-frame.png" alt="">
</div>
</div>
<figure class="figure code-block">
<pre>
<code class="code">
.img-venus-pseudo-transition {
transition: 500ms;
}
.img-venus-pseudo:hover {
filter: blur(20px);
-webkit-filter: blur(20px);
}
</code>
</pre>
</figure>
</div>
</div>
</div>
</div>
<div class="section secondary">
<div class="section-inner animated fadeIn animation-delay-500">
<h1 class="h1">Keyframes</h1>
<h3 class="h3">What are they?</h3>
<div class="body">
<div class="d-flex space-between">
<img src="assets/venus-keyframe-1.png" class="img-venus-keyframes-single animated fadeInRight animation-delay-500">
<img src="assets/venus-keyframe-2.png" class="img-venus-keyframes-single animated fadeInRight animation-delay-750">
<img src="assets/venus-keyframe-3.png" class="img-venus-keyframes-single animated fadeInRight animation-delay-1000">
</div>
<div class="d-flex space-between">
<img src="assets/venus-keyframe-4.png" class="img-venus-keyframes-single animated fadeInRight animation-delay-750">
<img src="assets/venus-keyframe-5.png" class="img-venus-keyframes-single animated fadeInRight animation-delay-1000">
</div>
</div>
</div>
</div>
<div class="section secondary">
<div class="section-inner animated fadeIn animation-delay-500">
<h1 class="h1">CSS Keyframes</h1>
<h3 class="h3">Two parts </h3>
<ol class="body">
<li class="animated list-text fadeInRight animation-delay-500">What should happen?</li>
<li class="animated list-text fadeInRight animation-delay-750">How should it happen?</li>
</ol>
</div>
</div>
<div class="section secondary">
<div class="section-inner animated fadeIn animation-delay-500">
<h3 class="h3">Part 1 </h3>
<h1 class="h1">Making Keyframes</h1>
<h3 class="h3">Or, what should happen?</h3>
<div class="d-flex body">
<div class="shadow container-img-venus img-venus-block animated">
<div class="img-venus img-venus-keyframes">
<img src="assets/venus-keyframe.gif" alt="">
</div>
<div class="img-venus">
<img src="assets/venus-final.gif" alt="">
</div>
</div>
<figure class="figure code-block">
<pre>
<code class="code">
@keyframes fadeOut {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
</code>
</pre>
</figure>
</div>
</div>
</div>
<div class="section secondary">
<div class="section-inner animated fadeIn animation-delay-500">
<h3 class="h3">Part 2 </h3>
<h1 class="h1">Applying Properties</h1>
<h3 class="h3">Or, how should it happen?</h3>
<div class="d-flex body">
<div class="shadow container-img-venus img-venus-block animated">
<span class="img-venus-text img-venus-text-adjust">Click me!</span>
<div class="img-venus action img-venus-keyframes">
<img src="assets/venus-keyframe.gif" alt="">
</div>
<div class="img-venus action">
<img src="assets/venus-final.gif" alt="">
</div>
</div>
<figure class="figure code-block">
<pre>
<code class="code">
.image-venus {
animation-delay: 0ms;
animation-direction: normal;
animation-duration: 1000ms;
animation-fill-mode: forwards;
animation-iteration-count: 1;
animation-name: fadeOut;
animation-timing-function: ease;
}
</code>
</pre>
</figure>
</div>
</div>
</div>
<div class="section secondary">
<div class="section-inner animated fadeIn animation-delay-500">
<h1 class="h1">Animate.css</h1>
<iframe class="iframe wide fadeInLeft animated"></iframe>
</div>
</div>
<div class="section secondary">
<div class="section-inner animated fadeIn animation-delay-500">
<h1 class="h1">Hover.css</h1>
<iframe class="iframe fadeInLeft animated"></iframe>
</div>
</div>
<div class="section secondary">
<div class="section-inner animated fadeIn animation-delay-500">
<h1 class="h1">Woah.css</h1>
<iframe class="iframe fadeInLeft animated"></iframe>
<br>
<p>Check out <a class="text-info" href="http://www.joerezendes.com/" target="_blank">this dude's portfolio</a>, it's a trip</p>
</div>
</div>
<div class="section secondary">
<div class="section-inner animated fadeIn animation-delay-500">
<h1 class="h1">Animation in JS</h1>
<h3 class="h3 animated rubberBand infinite">Any which way</h3>
</div>
</div>
<!-- <div class="section secondary">
<div class="section-inner animated fadeIn animation-delay-500">
<h1 class="h1">Mo.js</h1>
<iframe class="iframe fadeInLeft animated"></iframe>
</div>
</div> -->
<div class="section secondary">
<div class="section-inner animated fadeIn animation-delay-500">
<h1 class="h1">Lottie</h1>
<iframe class="iframe fadeInLeft animated"></iframe>
</div>
</div>
<div class="section secondary">
<div class="section-inner animated fadeIn animation-delay-500">
<h1 class="h1">GreenSock</h1>
<iframe class="iframe fadeInLeft animated"></iframe>
</div>
</div>
<div class="section secondary">
<div class="section-inner animated fadeIn animation-delay-500">
<h1 class="h1">Wow.js</h1>
<iframe class="iframe wide fadeInLeft animated"></iframe>
</div>
</div>
<div class="section secondary">
<div class="section-inner animated fadeIn animation-delay-500">
<h1 class="h1">Anime.js</h1>
<iframe class="iframe fadeInLeft animated"></iframe>
</div>
</div>
<div class="section secondary">
<div class="section-inner animated fadeIn animation-delay-500">
<div class="d-flex">
<h1 class="h1">What to </h1>
<h1 class="h1 animated flash infinite animation-duration-3">keep in mind</h1>
<h1 class="h1">?</h1>
</div>
<div class="body">
<h2 class="h2 animated fadeInRight animation-delay-500">Does the animation: </h2>
<br>
<h3 class="h3 animated fadeInRight animation-delay-750">Hinder/reduce the usability?</h3>
<h3 class="h3 animated fadeInRight animation-delay-750">Require resources that will increase load time?</h3>
<h3 class="h3 animated fadeInRight animation-delay-750">Improve UX in a functional/delightful way?</h3>
</div>
</div>
</div>
<div class="section secondary">
<div class="section-inner animated fadeIn animation-delay-500">
<div class="bg-info btn-big animated bounce infinite rounded-circle d-flex align-content-center justify-content-center">
<img id="pafiume" src="assets/pafiume.svg" alt="">
</div>
<h1 class="h1 animated zoomInDown animation-delay-500">Olivia Sabo-Rush</h1>
<h3 class="h3 animated zoomInDown animation-delay-1000">Please visit <a class="text-info" href="http://pafiu.me">pafiu.me</a></h3>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/2.2.0/anime.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/scrollify/1.0.19/jquery.scrollify.js"></script>
<script src="index.js"></script>
</body>
</html>