Call Of Duty Mobile Loading HTML and CSS | Source Code

Online Games Click on Image
Input:
<!DOCTYPE html>
<html>
<head>
<style>
*, *::before, *::after{
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root{
--bg: #252525;
--fg: #fbff2a;
--lw: 210px;
--lh: 210px;
}
body{
background-color: var(--bg);
}
.wrapper{
transform: scale(.5);
width: 100%;
min-height: 100vh;
}
.loader{
width: var(--lw);
height: var(--lh);
position: absolute;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
justify-content: center;
align-items: center;
}
.rotor{
position: absolute;
background-color: #ffffffbd;
box-shadow: 1px 0 5px #ffffffbe;
z-index: 105;
animation: rotor 2s step-start infinite;
}
@keyframes rotor{
0%, 100%{
width: 115px;
height: 5px;
top: 0;
left: 0;
transform: rotateZ(154deg) translate(15px, -20px);
}
16.6%{
width: 115px;
height: 5px;
top: 0;
left: 100%;
transform: rotateZ(208deg) translate(85px, -75px);
}
33.3%{
width: 5px;
height: 100px;
top: 50px;
left: 100%;
transform: translate(-5px, 5px);
}
50%{
width: 5px;
height: 115px;
top: 150px;
left: 100%;
transform: rotateZ(243deg) translate(48px, -38px);
}
66.6%{
width: 5px;
height: 115px;
top: 150px;
left: 0%;
transform: rotateZ(116deg) translate(-45px, -35px);
}
88.3%{
width: 5px;
height: 100px;
top: 50px;
left: 0%;
transform: translate(0px, 5px);
}
}
.loader::before, .loader::after{
position: absolute;
content: "";
display: block;
clip-path: polygon(0 75%, 0 25%, 50% 0, 100% 25%, 100% 75%, 50% 100%);
}
.loader::before{
width: var(--lh);
height: var(--lh);
background-color: var(--fg);
opacity: .6;
}
.loader::after{
width: calc(var(--lw) - 10px);
height: calc(var(--lh) - 10px);
background-color: var(--bg);
}
.left, .center, .right{
width: 30%;
height: 100px;
position: relative;
background-color: var(--fg);
z-index: 100;
}
.left::after, .center::after, .right::after, .left::before, .center::before, .right::before{
content: '';
display: block;
position: relative;
z-index: 1000;
background-color: var(--fg);
height: 12px;
}
.left::before, .center::before, .right::before{
bottom: 11.25%;
clip-path: polygon(50% 0, 0 100%, 100% 100%);
}
.center::before{
bottom: 1%;
background-color: var(--bg);
clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.left::after, .center::after, .right::after{
top: 87%;
clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.center::after{
top: 82%;
}
.left{
margin-left: 10px;
animation: topDown .8s .4s ease-in-out infinite;
}
.center{
margin: 0 5px;
height: 70px;
bottom: 12px;
animation: topDown 1s ease-in-out infinite;
}
.right{
margin-right: 10px;
animation: topDown .8s .6s ease-in-out infinite;
}
@keyframes topDown {
0%{
bottom: 20%;
opacity: 0;
}
15%{
opacity: 1;
}
50%{
top: 0%;
bottom: 0%;
}
85%{
opacity: 1;
}
100%{
top: 10%;
opacity: 0;
}
}
.dialog{
position: absolute;
top: calc(40% + 120px);
text-align: center;
color: #fff;
width: 70%;
margin: 0 15%;
font-size: 2em;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="loader">
<div class="rotor"></div>
<div class="left"></div>
<div class="center"></div>
<div class="right"></div>
</div>
<div class="dialog">
<p>Validating Game Settings...</p>
</div>
</div>
<script>
</script>
</body>
</html>
Output:
Validating Game Settings...
Comments
Post a Comment