<!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>Loader Animation</title>
<meta http-equiv="refresh" content="5">
</head>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: rgb(4, 37, 72);
}
.container{
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.circle{
width: 200px;
height: 200px;
border: 0px solid black;
border-radius: 50%;
position: absolute;
}
.circle:nth-child(1){
border-bottom-width: 8px;
border-color: orange;
animation: rotate1 2s linear infinite;
}
.circle:nth-child(2){
border-bottom-width: 8px;
border-color: white;
animation: rotate2 2s linear infinite;
}
.circle:nth-child(3){
border-bottom-width: 8px;
border-color: rgb(20, 201, 14);
animation: rotate3 2s linear infinite;
}
@keyframes rotate1 {
0%{
transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
}
100%{
transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
}
}
@keyframes rotate2 {
0%{
transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
}
100%{
transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
}
}
@keyframes rotate3 {
0%{
transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
}
100%{
transform: rotateX(35deg) rotateY(55deg) rotateZ(-360deg);
}
}
.loading{
color: white;
}
</style>
<body>
<div class="container">
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<span class="loading">Loading</span>
</div>
</body>
</html>
Nenhum comentário:
Postar um comentário