101 lines
2.1 KiB
HTML
101 lines
2.1 KiB
HTML
<html lang="en" class="focus-outline-visible">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Loader Animation</title>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
height: 100vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
opacity: 0;
|
|
animation: fadeIn 0.5s forwards;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
|
|
to {
|
|
opacity: 0.9;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
}
|
|
}
|
|
|
|
.loader-container {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.loader {
|
|
position: relative;
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
|
|
.loader div {
|
|
position: absolute;
|
|
border: 4px solid gray;
|
|
opacity: 1;
|
|
border-radius: 50%;
|
|
animation: loader-animation 1.5s infinite ease-in-out;
|
|
}
|
|
|
|
.loader div:nth-child(2) {
|
|
animation-delay: -1.2s;
|
|
}
|
|
|
|
@keyframes loader-animation {
|
|
|
|
0%,
|
|
100% {
|
|
width: 0;
|
|
height: 0;
|
|
top: 50px;
|
|
left: 50px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
50% {
|
|
width: 100px;
|
|
height: 100px;
|
|
top: 0;
|
|
left: 0;
|
|
opacity: 0;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="loader-container">
|
|
<div class="loader">
|
|
<div></div>
|
|
<div></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="loader-container">
|
|
<div class="loader">
|
|
<div></div>
|
|
<div></div>
|
|
</div>
|
|
<div class="loader">
|
|
<div></div>
|
|
<div></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |