Loading Effects Code Using Css3 - Css3

How to create loading bar effect using css3?

Snippet Code


  
Rate this page :
  [ 1 votes]

The sample css3 code allows you to create a loading bar effect on your page. The code for loading effect using css3 is given below.

<div align='center' class="container"> <div class="loader">Loading...</div> </div> <style> .container { height: 240px; overflow: hidden; position: relative; } .loader { margin: 10px auto; font-size: 10px; position: relative; text-indent: -9999em; border-top: 1.1em solid rgba(255, 25, 255, 0.2); border-right: 1.1em solid rgba(255, 255, 25, 0.2); border-bottom: 1.1em solid rgba(25, 255, 255, 0.2); border-left: 1.1em solid #ffffff; -webkit-transform: translateZ(0); -ms-transform: translateZ(0); transform: translateZ(0); -webkit-animation: load8 1.1s infinite linear; animation: load8 1.1s infinite linear; } .loader, .loader:after { border-radius: 50%; width: 10em; height: 10em; } @-webkit-keyframes load8 { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes load8 { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } </style>

Tags


Ask Questions

Ask Question