<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Pure CSS Loader and Spinner Animation By Atul Prajapati</title>
</head>
<body>
  <div id="wrapper">
    <!--   Spinner   -->
    <div class="loading-spinner"></div>
  </div>
</body>
</html>
*
{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  font-size: 10px;
}

#wrapper{
  background-color: #ffffff;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  width: 10rem;
  height: 10rem;
  display: inline-block;
  border: 3px solid #c8d6e5;
  border-radius: 50%;
  border-top-color: #2e86de;
  margin-bottom: 10rem;
  animation: 1s spin infinite ease-in-out;
  /*animation: 0.5s spin infinite ease-in-out; */
}

@keyframes spin{
  to{
      transform: rotate(360deg);
  }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.