Skip to content

Commit 2b63785

Browse files
Loading Css effect (#797)
1 parent 7b02dde commit 2b63785

4 files changed

Lines changed: 124 additions & 0 deletions

File tree

Loading Css effect/index.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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>Document</title>
7+
<link rel="stylesheet" href="style.css">
8+
</head>
9+
<body>
10+
<section>
11+
<div class="loader">
12+
13+
<div class="dot" style="--i:0"></div>
14+
<div class="dot" style="--i:1"></div>
15+
<div class="dot" style="--i:2"></div>
16+
<div class="dot" style="--i:3"></div>
17+
<div class="dot" style="--i:4"></div>
18+
<div class="dot" style="--i:5"></div>
19+
<div class="dot" style="--i:6"></div>
20+
<div class="dot" style="--i:7"></div>
21+
<div class="dot" style="--i:8"></div>
22+
<div class="dot" style="--i:9"></div>
23+
</div>
24+
<h2>Loading...</h2>
25+
<div class="loader">
26+
27+
<div class="dot" style="--i:0"></div>
28+
<div class="dot" style="--i:1"></div>
29+
<div class="dot" style="--i:2"></div>
30+
<div class="dot" style="--i:3"></div>
31+
<div class="dot" style="--i:4"></div>
32+
<div class="dot" style="--i:5"></div>
33+
<div class="dot" style="--i:6"></div>
34+
<div class="dot" style="--i:7"></div>
35+
<div class="dot" style="--i:8"></div>
36+
<div class="dot" style="--i:9"></div>
37+
</div>
38+
</section>
39+
</body>
40+
</html>

Loading Css effect/style.css

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
*
2+
{
3+
margin:0;
4+
padding:0;
5+
box-sizing:border-box;
6+
}
7+
8+
section{
9+
position:relative;
10+
width:100%;
11+
height:100vh;
12+
display:flex;
13+
justify-content:center;
14+
align-items: center;
15+
background:#001300;
16+
flex-direction:column;
17+
animation: changeColor 5s linear infinite;
18+
}
19+
@keyframes changeColor{
20+
21+
0%{
22+
filter: hue-rotate(0deg)
23+
}
24+
100%{
25+
filter: hue-rotate(360deg)
26+
}
27+
28+
}
29+
section h2{
30+
color:#00ff0a;
31+
font-family: consolas;
32+
font-weight:300;
33+
letter-spacing: 10px;
34+
}
35+
section .loader{
36+
position:relative;
37+
display:flex;
38+
}
39+
section .loader .dot{
40+
position:relative;
41+
display:block;
42+
width: 20px;
43+
height: 20px;
44+
background:#00ff0a;
45+
box-shadow: 0 0 10px #00ff0a,
46+
0 0 20px #00ff0a,
47+
0 0 40px #00ff0a,
48+
0 0 60px #00ff0a,
49+
0 0 80px #00ff0a,
50+
0 0 100px #00ff0a;
51+
margin: 20px 10px;
52+
transform:scale(0.1);
53+
border-radius:50%;
54+
animation: animateDot 2s linear infinite;
55+
animation-delay:calc(0.1s * var(--i));
56+
}
57+
section .loader:last-child .dot{
58+
animation-delay:calc(-0.1s * var(--i));
59+
}
60+
61+
62+
@keyframes animateDot{
63+
64+
0%{
65+
transform:scale(0.1);
66+
}
67+
68+
10%{
69+
transform:scale(1);
70+
}
71+
50%,100%{
72+
transform:scale(0.1);
73+
}
74+
75+
}

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ Please be aware that the demos may exhibit significant accessibility issues, suc
6868
- [Jumping Ball](#jumping-ball)
6969
- [Light Bulb Animation](#light-bulb-animation)
7070
- [Loaders](#loaders)
71+
- [Loading_Css_effect](#Loading-Css-effect)
7172
- [MasterCard](#mastercard)
7273
- [Mobile Menu Off Canvas](#mobile-menu-off-canvas)
7374
- [Modal/Popup](#modalpopup)
@@ -774,6 +775,14 @@ Please be aware that the demos may exhibit significant accessibility issues, suc
774775

775776
---
776777

778+
## <a id="Loading Css effect"></a>Loading Css effect
779+
780+
<img src="images/Loading_Css_effect.gif" height="230" title="Loading Css effect">
781+
782+
**[⬆ back to top](#quick-links)**
783+
784+
---
785+
777786
## <a id="city-animation-footer"></a>City animation footer
778787

779788
[<img src="images/City animation footer.gif" height="230" title="City animation footer">](https://github.com/Dreadlord075/You-Dont-Need-JavaScript/blob/d581e4061af20aa2e2dbf0c11a8860c3fe768245/images/City%20animation%20footer.gif)

images/Loading_Css_effect.gif

1.3 MB
Loading

0 commit comments

Comments
 (0)