Saturday, 2 September 2017

How To Create CSS Loader for websites with Example

How To Create CSS Loader for websites with Example

How to create Loader, create Loader, Loader code for websites, website Loader Example

How TO - CSS Loader
Example:


<!DOCTYPE html>
<html>
<head>
<style>
.loader {
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid blue;
  border-right: 16px solid green;
  border-bottom: 16px solid red;
  width: 120px;
  height: 120px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
</style>
</head>
<body>

<h2>How To Create A Loader</h2>
<p><strong>Note:</strong> The -webkit- and -ms- prefixes are for browsers that do not support animation and transform properties.</p>

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

</body>
</html>

Post a Comment

Whatsapp Button works on Mobile Device only

Start typing and press Enter to search