This content originally appeared on DEV Community and was authored by Technical Vandar
Hi Guys This is Awesome animated Gradient Loader Here you can get source code.
Source Code:
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="style.css">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Animated Gradient Loader HTML and CSS</title>
</head>
<body>
<div class="loader">
<span></span>
</div>
</body>
</html>
CSS Code:
*{
margin: 0;
padding: 0;
box-sizing: border-box;
text-decoration: none;
}
body{
height: 100vh;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
background-color: #010113;
}
.loader{
position: relative;
overflow: hidden;
box-shadow: -5px -5px -5px rgba(255, 255, 255, 0.1),
10px 10px 10px rgba(0, 0, 0, 0.4),
inset -5px -5px -5px rgba(255, 255, 255, 0.2),
inset 10px 10px 10px rgba(0, 0, 0, 0.4);
height: 200px;
width: 200px;
border-radius: 50%;
}
.loader:before{
position: absolute;
content: '';
z-index: 10;
opacity: 10;
top: 25px;
left: 25px;
right: 25px;
bottom: 25px;
background-color: #010113;
border-radius: 50%;
box-shadow: -5px -5px -5px rgba(255, 255, 255, 0.1),
10px 10px 10px rgba(0, 0, 0, 0.4),
inset -5px -5px -5px rgba(255, 255, 255, 0.2),
inset 10px 10px 10px rgba(0, 0, 0, 0.4);
}
.loader span{
position: absolute;
height: 100%;
width: 100%;
filter: blur(20px);
border-radius: 50%;
background: linear-gradient(#0e11d4, #0b8f84, #d81587);
animation: loader 0.6s linear infinite;
}
@keyframes loader {
0%{
transform: rotate(0deg);
}
100%{
transform: rotate(360deg);
}
}
Youtube Tutorial
Watch Here
Find Me On:
This content originally appeared on DEV Community and was authored by Technical Vandar
Print
Share
Comment
Cite
Upload
Translate
Updates
There are no updates yet.
Click the Upload button above to add an update.
APA
MLA
Technical Vandar | Sciencx (2021-10-08T12:39:51+00:00) Animated Gradient Loader Using Pure HTML & CSS.|. Retrieved from https://www.scien.cx/2021/10/08/animated-gradient-loader-using-pure-html-css/
" » Animated Gradient Loader Using Pure HTML & CSS.|." Technical Vandar | Sciencx - Friday October 8, 2021, https://www.scien.cx/2021/10/08/animated-gradient-loader-using-pure-html-css/
HARVARDTechnical Vandar | Sciencx Friday October 8, 2021 » Animated Gradient Loader Using Pure HTML & CSS.|., viewed ,<https://www.scien.cx/2021/10/08/animated-gradient-loader-using-pure-html-css/>
VANCOUVERTechnical Vandar | Sciencx - » Animated Gradient Loader Using Pure HTML & CSS.|. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/10/08/animated-gradient-loader-using-pure-html-css/
CHICAGO" » Animated Gradient Loader Using Pure HTML & CSS.|." Technical Vandar | Sciencx - Accessed . https://www.scien.cx/2021/10/08/animated-gradient-loader-using-pure-html-css/
IEEE" » Animated Gradient Loader Using Pure HTML & CSS.|." Technical Vandar | Sciencx [Online]. Available: https://www.scien.cx/2021/10/08/animated-gradient-loader-using-pure-html-css/. [Accessed: ]
rf:citation » Animated Gradient Loader Using Pure HTML & CSS.| | Technical Vandar | Sciencx | https://www.scien.cx/2021/10/08/animated-gradient-loader-using-pure-html-css/ |
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.