CSS Loading Screen
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
<body>
<div class="box"></div>
<div class="loader"></div>
</body>
</html>
// CSS File
/* .box{
background-color: orangered;
height: 100px;
width: 100px;
margin: 300px auto;
animation-name: rotating;
animation-duration: 3s;
animation-fill-mode: forwards;
animation-iteration-count: infinite;
animation-direction: reverse;
}
@keyframes rotating{
from{
}
to{
height: 0;
width: 0;
transform: rotate(170deg);
background-color: blueviolet;
border-radius: 50%;
}
} */
.loader{
border-radius: 50%;
/* background-color: rgb(255, 255, 255); */
height: 40px;
width: 40px;
margin: 100px auto;
border: 4px solid rgb(255, 255, 255);
border-top:4px solid rgb(36, 80, 255);
animation-name: loader;
animation-iteration-count: infinite;
animation-duration: 2s;
}
@keyframes loader{
from{}
to{
transform: rotate(360deg);
}
}
output:-
Comments
Post a Comment