How to a Loader
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="STYLESHEET" type="text/css" href="web.css">
<title>web design</title>
</head>
<body>
<h1>How to Create a Loader</h1>
<div class="loader"></div>
</body>
</html>
CSS Loader Animated Style
.loader{
border:16px solid #f3f3f3;
border-radius:50%;
border-top:16px solid blue;
width:120px;
height:120px ;
-webkit-animation:spin 2s linear infinite ;
animation:spin 2s linear infinite;
}
-webkit-@keyframes spin{
0%{
transform: rotate(0deg);
}
100%{
transform: rotate(360deg);
}
}
@keyframes spin{
0%{
transform: rotate(0deg);
}
100%{
transform: rotate(360deg);
}
}
No comments:
Post a Comment