File tree 4 files changed +79
-1
lines changed
4 files changed +79
-1
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 " />
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
6
+ < link rel ="stylesheet " href ="style.css " />
7
+ < title > Kinetic Loader</ title >
8
+ </ head >
9
+ < body >
10
+ < div class ="kinetic "> </ div >
11
+ < script src ="script.js "> </ script >
12
+ </ body >
13
+ </ html >
Original file line number Diff line number Diff line change
1
+ * {
2
+ box-sizing : border-box;
3
+ }
4
+
5
+ body {
6
+ background-color : # 2c3e50 ;
7
+ display : flex;
8
+ align-items : center;
9
+ justify-content : center;
10
+ height : 100vh ;
11
+ overflow : hidden;
12
+ margin : 0 ;
13
+ }
14
+
15
+ .kinetic {
16
+ position : relative;
17
+ height : 80px ;
18
+ width : 80px ;
19
+ }
20
+
21
+ .kinetic ::after ,
22
+ .kinetic ::before {
23
+ content : "" ;
24
+ position : absolute;
25
+ top : 0 ;
26
+ left : 0 ;
27
+ height : 0 ;
28
+ width : 0 ;
29
+ border : 50px solid transparent;
30
+ border-bottom-color : # fff ;
31
+ animation : rotationA 2s linear infinite 0.5s ;
32
+ }
33
+
34
+ .kinetic ::before {
35
+ transform : rotate (90deg );
36
+ animation : rotationB 2s linear infinite;
37
+ }
38
+
39
+ @keyframes rotationA {
40
+ 0% ,
41
+ 25% {
42
+ transform : rotate (0deg );
43
+ }
44
+ 50% ,
45
+ 75% {
46
+ transform : rotate (180deg );
47
+ }
48
+ 100% {
49
+ transform : rotate (360deg );
50
+ }
51
+ }
52
+
53
+ @keyframes rotationB {
54
+ 0% ,
55
+ 25% {
56
+ transform : rotate (90deg );
57
+ }
58
+ 50% ,
59
+ 75% {
60
+ transform : rotate (270deg );
61
+ }
62
+ 100% {
63
+ transform : rotate (450deg );
64
+ }
65
+ }
Original file line number Diff line number Diff line change 28
28
| 20 | [ Button Ripple Effect] ( https://github.com/solygambas/html-css-fifty-projects/tree/master/20-button%20ripple%20effect ) | [ Live Demo] ( https://codepen.io/solygambas/pen/oNzJdWw ) |
29
29
| 21 | [ Drag N Drop] ( https://github.com/solygambas/html-css-fifty-projects/tree/master/21-drag%20n%20drop ) | [ Live Demo] ( https://codepen.io/solygambas/pen/RwGEyme ) |
30
30
| 22 | [ Drawing App] ( https://github.com/solygambas/html-css-fifty-projects/tree/master/22-drawing%20app ) | [ Live Demo] ( https://codepen.io/solygambas/pen/wvzREMx ) |
31
- | 23 | [ Kinetic Loader] ( https://github.com/solygambas/html-css-fifty-projects/tree/master/kinetic-loader ) | [ Live Demo] ( /kinetic-loader/ ) |
31
+ | 23 | [ Kinetic Loader] ( https://github.com/solygambas/html-css-fifty-projects/tree/master/23-kinetic%20loader ) | [ Live Demo] ( https://codepen.io/solygambas/pen/JjRwVLW ) |
32
32
| 24 | [ Content Placeholder] ( https://github.com/solygambas/html-css-fifty-projects/tree/master/content-placeholder ) | [ Live Demo] ( /content-placeholder/ ) |
33
33
| 25 | [ Sticky Navbar] ( https://github.com/solygambas/html-css-fifty-projects/tree/master/sticky-navigation ) | [ Live Demo] ( /sticky-navbar/ ) |
34
34
| 26 | [ Double Vertical Slider] ( https://github.com/solygambas/html-css-fifty-projects/tree/master/double-vertical-slider ) | [ Live Demo] ( /double-vertical-slider/ ) |
You can’t perform that action at this time.
0 commit comments