DEV Community

Rohithaditya
Rohithaditya

Posted on

2 2

Create Windows Loader Using CSS

Do You Love windows Loading Animation? If Yes Then its for you!

HTML CODE:
<div class="container">
<div class="loader-wrapper">
<div class="loader">
<div class="dot"></div>
</div>
<div class="loader">
<div class="dot"></div>
</div>
<div class="loader">
<div class="dot"></div>
</div>
<div class="loader">
<div class="dot"></div>
</div>
<div class="loader">
<div class="dot"></div>
</div>
<div class="loader">
<div class="dot"></div>
</div>
</div>
<div class="bot">
<br>
Loading
</div>
</div>

The Following Are CSS CODE:
`body{
margin:0;
display:grid;
place-items:center;
height:100vh;
background-color:#00a2ed;
}

.container{
width:80px;
height:80px;
display:grid;
place-items:center;
}

.loader-wrapper{
width:80px;
height:80px;
position:absolute;
display:flex;
justify-content:center;
align-items:center;
}

.loader{
position:absolute;
height:20px;
animation: spin 3.5s linear infinite;
}

.loader .dot{
width:6px;
height:6px;
background-color:#fff;
border-radius:50%;
position:relative;
top:30px;
}

@keyframes spin{
30%{
transform:rotate(220deg);
}

40%{
opacity:1;
transform:rotate(450deg);
}

75%{
opacity:1;
transform:rotate(720deg);
}

76%{
opacity:0;
}

100%{
opacity:0;
transform:rotate(0deg);
}

}

.loader:first-child{
animation-delay:0.15s;
}

.loader:nth-child(2){
animation-delay:0.3s;
}

.loader:nth-child(3){
animation-delay:0.45s;
}
.loader:nth-child(4){
animation-delay:0.6s;
}
.loader:nth-child(5){
animation-delay:0.75s;
}

.loader:last-child{
animation-delay:0.9s;
}
.bot{
display:flex;
margin-top:90%;
color:white;
font-size:20px;
font-family:Raleway;
}`

For Demo :
Small Snap Of Working Code!

Small Snap Of Working Code

Small Snap Of Working Code

Heroku

Built for developers, by developers.

Whether you're building a simple prototype or a business-critical product, Heroku's fully-managed platform gives you the simplest path to delivering apps quickly — using the tools and languages you already love!

Learn More

Top comments (0)

Image of PulumiUP 2025

From Cloud to Platforms: What Top Engineers Are Doing Differently

Hear insights from industry leaders about the current state and future of cloud and IaC, platform engineering, and security.

Save Your Spot

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, cherished by the supportive DEV Community. Coders of every background are encouraged to bring their perspectives and bolster our collective wisdom.

A sincere “thank you” often brightens someone’s day—share yours in the comments below!

On DEV, the act of sharing knowledge eases our journey and forges stronger community ties. Found value in this? A quick thank-you to the author can make a world of difference.

Okay