-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
519 lines (469 loc) · 18.6 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
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Totaro - Motions</title>
<!--font awesome-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- Reset -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/modern-normalize@2.0.0/modern-normalize.min.css">
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;700&family=Poppins:wght@700&display=swap" rel="stylesheet">
<!-- styles-->
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="style_cards.css">
</head>
<body>
<div class="loader-container">
<div class="loader"></div>
</div>
<a id="top"></a>
<section id="hero">
<video autoplay muted loop>
<source src="videos/hero_bg_video.mp4" type="video/mp4">
<source src="videos/hero_bg_video.webm" type="video/webm">
</video>
<header>
<button class="button" id="menu-button">
<span></span>
<span></span>
<span></span>
</button>
<nav>
<ul>
<li class="has-submenu">
<a href="https://totaro.github.io/">Totaro <i class="fa-solid fa-arrow-turn-up"></i></a>
<ul>
<li>
<a href="https://totaro.github.io/">Click here to go Totaro portfolio page</a>
</li>
</ul>
</li>
</ul>
</nav>
</header>
<div id="menu-container">
<ul class="unstyled">
<li><a href="#spinnerloader" id="menu-link">Spinner Loader</a></li>
<li><a href="#textloader" id="menu-link">Text Loader</a></li>
<li><a href="#animatedbutton" id="menu-link">Animated Button</a></li>
<li><a href="#typewritereffect" id="menu-link">Typewriter Effect</a></li>
<li><a href="#mousefollow" id="menu-link">Mouse Follow</a></li>
<li><a href="#slidingcards" id="menu-link">Sliding Cards</a></li>
<li><a href="#changebgcolor" id="menu-link">Change Color</a></li>
<li><a href="#animatedbackground" id="menu-link">Animated Background</a></li>
<li><a href="#borderanimation" id="menu-link">Border Animation</a></li>
<li><a href="#scrollticker" id="menu-link">Scroll Ticker</a></li>
</ul>
</div>
<div class="hero__content">
<h1>Making web motions with
<span id="typewriter"></span>
<span id="cursor">|</span></h1>
<h3>This is my playground/sandbox where I play with different kinds of web motions and animations.</h3><h5>This page focus mainly on web motions and animations so is not fully responsive. Used techniques: html/css/js/gsap</h5>
</div>
<div id="scroll-down">
<p>Scroll Down</p>
<svg width="18" height="18" viewBox="0 0 12 12" >
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.0303 6.53033C11.3232 6.23744 11.3232 5.76256 11.0303 5.46967C10.7374 5.17678 10.2626 5.17678 9.96967 5.46967L6.75 8.68934L6.75 0.75C6.75 0.335786 6.41421 -2.11379e-07 6 -2.29485e-07C5.58579 -2.47591e-07 5.25 0.335786 5.25 0.75L5.25 8.68934L2.03033 5.46967C1.73744 5.17678 1.26256 5.17678 0.96967 5.46967C0.676777 5.76256 0.676777 6.23744 0.96967 6.53033L5.46967 11.0303C5.76256 11.3232 6.23744 11.3232 6.53033 11.0303L11.0303 6.53033Z"/>
</svg>
</div>
</section>
<section id="portfolio">
<a id="spinnerloader"></a>
<div class="entry">
<div class="entry__meta">
<h6>Motion<span></span>#1</h6>
<h4>Spinner Loader</h4>
<h5><ul class="inner-links">
<li><a href="#top">Top <i class="fa-solid fa-arrow-turn-up"></i></a></li>
</ul>
</h5>
</div>
<figure class="entry__media">
<div class="loader-row">
<div>
<div class="loader"></div>
</div>
<div>
<div class="loader2 ">
<svg height="100" width="100">
<circle cx="50" cy="52" r="32"/>
</svg>
</div>
</div>
</div>
</figure>
</div>
<a id="textloader"></a>
<div class="entry">
<div class="entry__meta">
<h6>Motion<span></span>#2</h6>
<h4>Text Loader SVG</h4>
<h5><ul class="inner-links">
<li><a href="#top">Top <i class="fa-solid fa-arrow-turn-up"></i></a></li>
</ul>
</h5>
</div>
<figure class="entry__media">
<div class="text_loader">
<svg viewBox="0 0 425 160">
<text x="50%" y="50%" dy=".32em" text-anchor="middle" class="text-body">
Animation
</text>
<text x="50%" y="50%" dy=".32em" dx="2.5em" text-anchor="middle" class="text-dot">
.
</text>
</svg>
</div>
</figure>
</div>
<a id="animatedbutton"></a>
<div class="entry">
<div class="entry__meta">
<h6>Motion<span></span>#3</h6>
<h4>Animated Button</h4>
<h5><ul class="inner-links">
<li><a href="#top">Top <i class="fa-solid fa-arrow-turn-up"></i></a></li>
</ul>
</h5>
</div>
<figure class="entry__media">
<div class="button-animation">
<button class="button" id="btn-submit">
<span class="button--text">Log In</span>
<div class="button--loader">
<div></div>
<div></div>
<div></div>
</div>
</button>
</div>
</figure>
</div>
<a id="typewritereffect"></a>
<div class="entry">
<div class="entry__meta">
<h6>Motion<span></span>#4</h6>
<h4>Typewriter Effect</h4>
<h5><ul class="inner-links">
<li><a href="#top">Top <i class="fa-solid fa-arrow-turn-up"></i></a></li>
</ul>
</h5>
</div>
<figure class="entry__media">
<h4>Making web motions with
<span id="typewriter"></span>
<span id="cursor">|</span>
</h4>
</figure>
</div>
<a id="mousefollow"></a>
<div class="entry">
<div class="entry__meta">
<h6>Motion<span></span>#5</h6>
<h4>Mouse Follow</h4><br>
<h5><ul class="inner-links">
<li><a href="#top">Top <i class="fa-solid fa-arrow-turn-up"></i></a></li>
</ul>
</h5>
</div>
<figure class="entry__media">
<button class="magnet">
<span class="text">Mouse Me!</span>
</button>
<div id="debugger"></div>
</figure>
</div>
<a id="slidingcards"></a>
<div class="entry">
<div class="entry__meta">
<h6>Motion<span></span>#6</h6>
<h4>Sliding Cards</h4><br>
<h5><ul class="inner-links">
<li><a href="#top">Top <i class="fa-solid fa-arrow-turn-up"></i></a></li>
</ul>
</h5>
</div>
<figure class="entry__media">
<div class="card_container">
<input type="radio" name="slide" id="c1" checked>
<label for="c1" class="card">
<div class="row">
<div class="icon">1</div>
<div class="description">
<h4>Winter</h4>
<p>The coldest season of the year</p>
</div>
</div>
</label>
<input type="radio" name="slide" id="c2" >
<label for="c2" class="card">
<div class="row">
<div class="icon">2</div>
<div class="description">
<h4>Spring</h4>
<p>The season after winter and before summer</p>
</div>
</div>
</label>
<input type="radio" name="slide" id="c3" >
<label for="c3" class="card">
<div class="row">
<div class="icon">3</div>
<div class="description">
<h4>Summer</h4>
<p>The warmest season of the year</p>
</div>
</div>
</label>
<input type="radio" name="slide" id="c4" >
<label for="c4" class="card">
<div class="row">
<div class="icon">4</div>
<div class="description">
<h4>Autumn</h4>
<p>The season after summer and before winter</p>
</div>
</div>
</label>
</div>
</figure>
</div>
<a id="changebgcolor"></a>
<div class="entry">
<div class="entry__meta">
<h6>Motion<span></span>#7</h6>
<h4>Change Color</h4><br>
<h5><ul class="inner-links">
<li><a href="#top">Top <i class="fa-solid fa-arrow-turn-up"></i></a></li>
</ul>
</h5>
</div>
<figure id="change-bg" class="entry__media">
<button class="togglebutton">
Change background to light <i class="fa-solid fa-sun"></i>
</button>
</figure>
</div>
<a id="animatedbackground"></a>
<div class="entry">
<div class="entry__meta">
<h6>Motion<span></span>#8</h6>
<h4>Animated Background</h4><br>
<h5><ul class="inner-links">
<li><a href="#top">Top <i class="fa-solid fa-arrow-turn-up"></i></a></li>
</ul>
</h5>
</div>
<figure class="entry__media animatedBackground">
<div class="animated-center">Animated Background</div>
<ul class="squares">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
</figure>
</div>
<a id="borderanimation"></a>
<div class="entry">
<div class="entry__meta">
<h6>Motion<span></span>#9</h6>
<h4>Border Animation</h4>
<h5><ul class="inner-links">
<li><a href="#top">Top <i class="fa-solid fa-arrow-turn-up"></i></a></li>
</ul>
</h5>
</div>
<figure class="entry__media">
<div class="animated_boxes">
<div class="animated_box">
<span class="animated_box_text">Mouse Me!</span>
</div>
<div class="animated_box2">
<span class="animated_box_text">Mouse Me!</span>
</div>
</div>
</figure>
</div>
<a id="scrollticker"></a>
<div class="entry">
<div class="entry__meta">
<h6>Motion<span></span>#10</h6>
<h4>Scroll Ticker</h4>
<h5><ul class="inner-links">
<li><a href="#top">Top <i class="fa-solid fa-arrow-turn-up"></i></a></li>
</ul>
</h5>
</div>
<figure class="entry__media">
<!-- <script type="module" src="./js/stock.js"></script> -->
<!-- <div id="stockdata" class="stock-ticker"></div> -->
<div class="stock-ticker">
<ul>
<li class="minus">
<span class="company">AAPL</span>
<span class="price">$169.38</span>
<span class="change">-3.31 (-1.917%)</span>
</li>
<li class="plus">
<span class="company">MSFT</span>
<span class="price">$414.58</span>
<span class="change">+0.94 (+0.227%)</span>
</li>
<li class="plus">
<span class="company">NVDA</span>
<span class="price">$874.15</span>
<span class="change">+14.14 (+1.644%)</span>
</li>
<li class="minus">
<span class="company">GOOG</span>
<span class="price">$156.00</span>
<span class="change">-0.33 (-0.211%)</span>
</li>
<li class="minus">
<span class="company">AMZN</span>
<span class="price">$183.32</span>
<span class="change">-0.30 (-0.163%)</span>
</li>
<li class="plus">
<span class="company">AVGO</span>
<span class="price">$1,329.06</span>
<span class="change">+18.37 (+1.402%)</span>
</li>
<li class="minus">
<span class="company">META</span>
<span class="price">$499.76</span>
<span class="change">-0.47 (-0.094%)</span>
</li>
<li class="plus">
<span class="company">MA</span>
<span class="price">$459.82</span>
<span class="change">+0.03 (+0.007%)</span>
</li>
<li class="minus">
<span class="company">TSLA</span>
<span class="price">$157.11</span>
<span class="change">-4.37 (-2.706%)</span>
</li>
</ul>
<ul aria-hidden="true">
<li class="minus">
<span class="company">AAPL</span>
<span class="price">$169.38</span>
<span class="change">-3.31 (-1.917%)</span>
</li>
<li class="plus">
<span class="company">MSFT</span>
<span class="price">$414.58</span>
<span class="change">+0.94 (+0.227%)</span>
</li>
<li class="plus">
<span class="company">NVDA</span>
<span class="price">$874.15</span>
<span class="change">+14.14 (+1.644%)</span>
</li>
<li class="minus">
<span class="company">GOOG</span>
<span class="price">$156.00</span>
<span class="change">-0.33 (-0.211%)</span>
</li>
<li class="minus">
<span class="company">AMZN</span>
<span class="price">$183.32</span>
<span class="change">-0.30 (-0.163%)</span>
</li>
<li class="plus">
<span class="company">AVGO</span>
<span class="price">$1,329.06</span>
<span class="change">+18.37 (+1.402%)</span>
</li>
<li class="minus">
<span class="company">META</span>
<span class="price">$499.76</span>
<span class="change">-0.47 (-0.094%)</span>
</li>
<li class="plus">
<span class="company">MA</span>
<span class="price">$459.82</span>
<span class="change">+0.03 (+0.007%)</span>
</li>
<li class="minus">
<span class="company">TSLA</span>
<span class="price">$157.11</span>
<span class="change">-4.37 (-2.706%)</span>
</li>
<!-- <li class="minus">
<span class="company">AAPL</span>
<span class="price">181.16</span>
<span class="change">-1.36 (-0.75%)</span>
</li>
<li class="plus">
<span class="company">TSLA</span>
<span class="price">199.40</span>
<span class="change">+7.43 (+3.87%)</span>
</li>
<li class="plus">
<span class="company">NFLX</span>
<span class="price">587.65</span>
<span class="change">+4.09 (+0.70%)</span>
</li>
<li class="minus">
<span class="company">GOOG</span>
<span class="price">138.75</span>
<span class="change">-6.54 (-4.50%)</span>
</li>
<li class="plus">
<span class="company">NVDA</span>
<span class="price">790.92</span>
<span class="change">+2.75 (+0.35%)</span>
</li>
<li class="minus">
<span class="company">MSFT</span>
<span class="price">407.54</span>
<span class="change">-2.80 (-0.68%)</span>
</li>
<li class="plus">
<span class="company">META</span>
<span class="price">487.05</span>
<span class="change">+5.31 (+1.10%)</span>
</li>
<li class="minus">
<span class="company">KO</span>
<span class="price">60.34</span>
<span class="change">-0.37 (-0.61%)</span>
</li> -->
</ul>
</div>
</figure>
</div>
</section>
<footer>
<div class="footer__content">
<h2>Making web motions with
<span id="typewriter"></span>
<span id="cursor">|</span></h2>
<ul class="inner-links">
<li><a href="#top">Back to top <i class="fa-solid fa-arrow-turn-up"></i></a></li>
</ul>
</div>
<p>© 2024 Totaro</p>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/ScrollTrigger.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.4/TextPlugin.min.js"></script>
<script src="script.js"></script>
</body>
</html>