HTML code:-
<!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">
<link rel="stylesheet" href="style.css">
<title>Abhicoder - Creative Mind! Loading---</title>
</head>
<body>
<div class="container">
<div class="spinner"></div>
</div>
</body>
</html>
CSS code:-
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
.container{
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: #4285f4;
}
.spinner{
width: 80px;
height: 80px;
border: 7px solid #fff;
border-top-color: transparent;
border-radius: 50%;
animation: spinner 0.7s linear infinite;
}
@keyframes spinner{
form{}
to{
transform: rotate(360deg);
}
}
Hope it was help full for you then please SUBSCRIBE to my channel!
Thank you!
0 Comments