FH - Loader

In this example below you will see how to do a FH - Loader with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by hugodesgayets, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright hugodesgayets ©
  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>FH - Loader</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <div class="navbar"><div>

<div class="container">
  <div class="loader"></div>
</div>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/hugodesgayets/fh-loader-gvgOOX */
body {
  margin: 0;
}

.navbar {
  position: absolute;
  width: 100%;
  height: 72px;
  background-color: white;
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.05);
}

.container {
  margin: 144px auto;
  width: 32px;
  height: 32px;
}

.loader {
  position: relative;
  -webkit-animation: spin 0.8s linear infinite;
  animation: spin 0.8s linear infinite;
  border: 3px solid #EFEFEF;
  border-top: 3px solid #FFFFFF;
  border-radius: 50%;
  height: 32px;
  width: 32px;
}

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

Comments