Skip to content

Commit 2532505

Browse files
authored
Added Neon Loader (Dezenix#3)
* Fix: Added Readme * Fix: Added html * Fix: Added stylesheet
1 parent c058d90 commit 2532505

File tree

3 files changed

+69
-0
lines changed

3 files changed

+69
-0
lines changed

Neon_Loader/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## Simple Neon Loader
2+
3+
### Preview
4+
![](https://github.com/divyaa30/frontend-componets/blob/main/Neon-Loader/assets/loader.gif)

Neon_Loader/code/index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<html lang="en">
2+
<head>
3+
<meta charset="UTF-8">
4+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>neon-loader</title>
7+
<link rel="stylesheet" href="style.css">
8+
</head>
9+
<body>
10+
<div class="container">
11+
<div class="loader-wrapper">
12+
</div>
13+
</div>
14+
</body>
15+
</html>

Neon_Loader/code/style.css

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
margin: 0;
3+
padding: 0;
4+
box-sizing: border-box;
5+
}
6+
7+
.container{
8+
display: flex;
9+
justify-content: center;
10+
align-items: center;
11+
min-height: 100vh;
12+
background: #11052C;
13+
14+
}
15+
16+
17+
.loader-wrapper{
18+
position: absolute;
19+
width: 200px;
20+
height: 200px;
21+
background: linear-gradient(to top, #11052C 40% ,#FFE459);
22+
border-radius: 50%;
23+
animation: rotation 1.5s linear infinite;
24+
25+
}
26+
@keyframes rotation {
27+
to{
28+
transform: rotate(360deg);
29+
}
30+
}
31+
.loader-wrapper::before{
32+
content: '';
33+
position: absolute;
34+
background: #11052C;
35+
inset: 30px 30px 0 0;
36+
border-radius: 50%;
37+
38+
}
39+
40+
.loader-wrapper::after{
41+
content: '';
42+
position: absolute;
43+
top: 75px;
44+
right: -9px;
45+
width: 45px;
46+
height: 45px;
47+
background: #FFE459;
48+
border-radius: 50%;
49+
box-shadow: 0 0 8px #FFE459, 0 0 8px #FFE459, 0 0 24px #FFE459, 0 0 48px #FFE459, 0 0 80px #FFE459 ;
50+
}

0 commit comments

Comments
 (0)