Projects

Quick and Easy CSS Loaders

In this video, we are going to create some simple Pure CSS Loaders.

HTML Code

<!DOCTYPE html>
<html>
	<head>
	<link rel="stylesheet" href="main.css">
  
	</head>
	
	<body>
  <div class="loader">
      <div class="spinner1"></div>
      <div class="spinner2"></div>
      <div class="spinner3"></div>
  </div>
    </body>

</html>

CSS Code

body {
  background: #576067;
}
.loader {
  width: 100px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.loader > div {
  width: 20px;
  height: 20px;
  background: #fff;
  display: inline-block;
  border-radius: 50%;
  margin: 0 5px;
}
.loader .spinner1 {
  animation-delay: -0,32s;
}
.loader .spinner2 {
  animation-delay: -0,16s;
}