Make Awesome Loading Animation Using HTML and CSS | Different Colors
<!DOCTYPE html>
<html lang="en">
<head>
<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>Document</title>
<style>
body{
margin: 0;
padding: 0;
box-sizing: border-box;
background-color: rgb(24, 24, 21);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
font-family: Verdana, Geneva, Tahoma, sans-serif;
font-size: larger;
font-weight: 600;
}
div{
color: aliceblue;
margin: 15px;
/* padding: 20px; */
}
.container{
position: relative;
width: 100px;
height: 100px;
border-radius: 50%;
background:linear-gradient(45deg, transparent , transparent 40%, #05f7a6);
animation: animate 2s linear infinite;
}
.container:before{
content: '';
position: absolute;
top: 6px;
left: 6px;
right: 6px;
bottom: 6px;
background-color:rgb(24, 24, 21);
border-radius: 50%;
z-index: 1000;
}
.container:after{
content: '';
position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
background-color:rgb(24, 24, 21);
border-radius: 50%;
background:linear-gradient(45deg, transparent , transparent 40%, #05f7a6);
z-index: 1000;
z-index: 1;
filter: blur(40px);
}
@keyframes animate{
0%{
transform: rotate(0deg);
filter: hue-rotate(0deg);
}
100%{
transform: rotate(360deg);
filter: hue-rotate(360deg);
}
}
</style>
</head>
<body>
<!-- <img src="../Downloads/NicePng_apple-logo-png_80015.png" width="90px" height="auto " alt=""> -->
<div class="container"> </div>
<div class="lo">Loading...</div>
</body>
</html>
YOUTUBE VIDEO FOR THIS CODE :
IF THIS IS HELPFUL TO YOU PLEASE SUBSCRIBE ME AT MY YOU TUBE CHANNEL
CODING WITH ROANNIE
CHANNEL LINK :https://www.youtube.com/channel/UCmHAQ88-hB64ShXsaQ45KJw