<!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>Loading</title>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
background: black;
color: white;
min-height: 100vh;
min-width: 100vw;
display: flex;
justify-content: center;
align-items: center;
font-size: 5rem;
}
div{
overflow: hidden;
height: 6rem;
width: 21rem;
position: relative;
}
div .loader{
position: absolute;
overflow: hidden;
top: 0px;
width: 100%;
animation: animate 0.8s ease-in infinite alternate-reverse;
}
@keyframes animate {
from{
width: 100%;
}
to{
width: 0%;
}
}
</style>
</head>
<body>
<div class="main">
<Span class="loader">Loading...</Span>
</div>
</body>
</html>
Comments
Post a Comment