Notes
HTML
CSS
JS
Tools
Code Snippets
HTML Entity
About
Contact Us
HTML and CSS Loading Spinner
HTML
CSS
JS
Output
HTML
<html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>HTML and CSS Loading Spinner</title> </head> <body> <section> <h1 class="mainHeading">HTML and CSS Loading Spinner</h1> <div class="mainDiv"> <div class="circularLloader"></div> </div> </section> </body> </html>
Copied
<html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>HTML and CSS Loading Spinner</title> </head> <body> <section> <h1 class="mainHeading">HTML and CSS Loading Spinner</h1> <div class="mainDiv"> <div class="circularLloader"></div> </div> </section> </body> </html>
CSS
* { margin: 0; padding: 0; box-sizing: border-box; } body { height: 100vh; display: flex; justify-content: center; align-items: center; background-color: #e0fef5; } .mainHeading { color: rgb(6, 2, 114); text-align: center; } .mainDiv { display: flex; justify-content: center; margin-top: 1rem; } div.circularLloader { animation: rotateAnimation 2s infinite ease; margin: auto; width: 40px; height: 40px; border: 4px solid #CCE6F4; border-top-color: #003844; border-right-color: #FFB100; border-bottom-color: #006C67; border-left-color: #F194B4; border-radius: 50%; } /* animations */ @keyframes rotateAnimation { 0% { transform: rotate(0deg); } 10% { transform: rotate(-45deg); } 100% { transform: rotate(720deg); } }
Copied
* { margin: 0; padding: 0; box-sizing: border-box; } body { height: 100vh; display: flex; justify-content: center; align-items: center; background-color: #e0fef5; } .mainHeading { color: rgb(6, 2, 114); text-align: center; } .mainDiv { display: flex; justify-content: center; margin-top: 1rem; } div.circularLloader { animation: rotateAnimation 2s infinite ease; margin: auto; width: 40px; height: 40px; border: 4px solid #CCE6F4; border-top-color: #003844; border-right-color: #FFB100; border-bottom-color: #006C67; border-left-color: #F194B4; border-radius: 50%; } /* animations */ @keyframes rotateAnimation { 0% { transform: rotate(0deg); } 10% { transform: rotate(-45deg); } 100% { transform: rotate(720deg); } }
JS
Copied
Output
Our Courses
HTML 5
CSS
JavaScript
MySql
PHP
Laravel
Bootstrap
Programming Tutorial
PHP
JavaScript
HTML
Laravel
MySQL
JQuery
CSS
Git
Bootstrap
Vue JS
Android
Python
Server
Code Snippets
Chat Box
Range Slider
Radio Button
Select Box
Nav Bar
Other
Testimonial
Carousel
Logo
Loader
Lightbox
Forms
Popup
Table
HTML Course Code
HTML Entity
↑→ Arrows
$¢ Currency
Aö Letters
%+ Math
1¾ Numbers
&— Punctuation
©™ Symbols
Best Of
Internet
Technology
Health
Travel
Onine Tools
CSS Minifier
Text Converter
Age Calculator
Pincode Details
Whiteboard
PDF to Text
Gradient Generator
PX to REM Converter
REM to PX Converter
PX to EM Converter
EM to PX Converter
WEBP Converter
Latest & Upcoming movies
Bollywood
Hollywood
Tamil
Telgu
Bangla
Web Series
Notes
HTML
CSS
JS