Notes
HTML
CSS
JS
Tools
Code Snippets
HTML Entity
About
Contact Us
Colorfull Loading Spinner Using HTML and CSS
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>Colorfull Loading Spinner Using HTML and CSS</title> </head> <body> <section> <h1 class="mainHeading">Colorfull Loading Spinner Using HTML and CSS</h1> <div class="mainDiv"> <div class="spinner-div"></div> </div> </body> </html>
Copied
<html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Colorfull Loading Spinner Using HTML and CSS</title> </head> <body> <section> <h1 class="mainHeading">Colorfull Loading Spinner Using HTML and CSS</h1> <div class="mainDiv"> <div class="spinner-div"></div> </div> </body> </html>
CSS
* { margin: 0; padding: 0; box-sizing: border-box; } body { height: 100vh; display: flex; justify-content: center; align-items: center; } .mainHeading { color: rgb(6, 2, 114); text-align: center; } .mainDiv { display: flex; justify-content: center; margin-top: 1rem; } .spinner-div { box-sizing: border-box; position: relative; margin: auto; width: 128px; aspect-ratio: 1/1; border-radius: 50%; border: 16px solid transparent; border-top-color: #006eff; border-bottom-color: #00ff55; transform: rotateZ(-45deg); animation: SuperSpinerAnimation 5s linear infinite; } .spinner-div::after { box-sizing: border-box; content: ""; position: absolute; inset: -16px; aspect-ratio: 1/1; border-radius: 50%; border: 16px solid transparent; border-right-color: #6f00ff; border-left-color: #00f7ff; animation: SuperSpinerAnimation 5s linear infinite; } @keyframes SuperSpinerAnimation { 0% { transform: rotateZ(0deg); } 25% { transform: rotateZ(360deg); } 75% { transform: rotateZ(720deg); } 100% { transform: rotateZ(1080deg); } }
Copied
* { margin: 0; padding: 0; box-sizing: border-box; } body { height: 100vh; display: flex; justify-content: center; align-items: center; } .mainHeading { color: rgb(6, 2, 114); text-align: center; } .mainDiv { display: flex; justify-content: center; margin-top: 1rem; } .spinner-div { box-sizing: border-box; position: relative; margin: auto; width: 128px; aspect-ratio: 1/1; border-radius: 50%; border: 16px solid transparent; border-top-color: #006eff; border-bottom-color: #00ff55; transform: rotateZ(-45deg); animation: SuperSpinerAnimation 5s linear infinite; } .spinner-div::after { box-sizing: border-box; content: ""; position: absolute; inset: -16px; aspect-ratio: 1/1; border-radius: 50%; border: 16px solid transparent; border-right-color: #6f00ff; border-left-color: #00f7ff; animation: SuperSpinerAnimation 5s linear infinite; } @keyframes SuperSpinerAnimation { 0% { transform: rotateZ(0deg); } 25% { transform: rotateZ(360deg); } 75% { transform: rotateZ(720deg); } 100% { transform: rotateZ(1080deg); } }
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