File tree Expand file tree Collapse file tree 3 files changed +73
-0
lines changed
Art/maxfedorov-dual-ring-pulse-loader Expand file tree Collapse file tree 3 files changed +73
-0
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
+ < title > Dual Ring Pulse Loader</ title >
7
+ < link rel ="stylesheet " href ="styles.css " />
8
+ </ head >
9
+ < body >
10
+ < div class ="loader ">
11
+ < div class ="ring outer "> </ div >
12
+ < div class ="ring inner "> </ div >
13
+ </ div >
14
+ </ body >
15
+ </ html >
Original file line number Diff line number Diff line change
1
+ {
2
+ "artName" : " Dual Ring Pulse Loader" ,
3
+ "githubHandle" : " maxfedorov"
4
+ }
Original file line number Diff line number Diff line change
1
+ body {
2
+ height : 100vh ;
3
+ display : flex;
4
+ justify-content : center;
5
+ align-items : center;
6
+ }
7
+
8
+ .loader {
9
+ position : relative;
10
+ width : 100px ;
11
+ height : 100px ;
12
+ }
13
+
14
+ .ring {
15
+ position : absolute;
16
+ border : 4px solid transparent;
17
+ border-radius : 50% ;
18
+ }
19
+
20
+ .outer {
21
+ width : 100px ;
22
+ height : 100px ;
23
+ border-top : 4px solid # ff3366 ;
24
+ border-right : 4px solid # ff3366 ;
25
+ animation : spin 2s linear infinite, pulse 1.5s ease-in-out infinite;
26
+ }
27
+
28
+ .inner {
29
+ width : 70px ;
30
+ height : 70px ;
31
+ top : 15px ;
32
+ left : 15px ;
33
+ border-bottom : 4px solid # 33ffcc ;
34
+ border-left : 4px solid # 33ffcc ;
35
+ animation : spin 2s linear infinite reverse, pulse 1.5s ease-in-out infinite 0.5s ;
36
+ }
37
+
38
+ @keyframes spin {
39
+ 0% {
40
+ transform : rotate (0deg );
41
+ }
42
+ 100% {
43
+ transform : rotate (360deg );
44
+ }
45
+ }
46
+
47
+ @keyframes pulse {
48
+ 0% , 100% {
49
+ transform : scale (1 ) rotate (0deg );
50
+ }
51
+ 50% {
52
+ transform : scale (1.1 ) rotate (180deg );
53
+ }
54
+ }
You can’t perform that action at this time.
0 commit comments