Notes
HTML
CSS
JS
Tools
Code Snippets
HTML Entity
About
Contact Us
Animated Liquid Dots Loader 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>Animated Liquid Dots Loader Using HTML and CSS</title> </head> <body> <section> <h1 class="mainHeading">Animated Liquid Dots Loader Using HTML and CSS</h1> <div class="mainDiv"> <div class="animatedLiquidDots"></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>Animated Liquid Dots Loader Using HTML and CSS</title> </head> <body> <section> <h1 class="mainHeading">Animated Liquid Dots Loader Using HTML and CSS</h1> <div class="mainDiv"> <div class="animatedLiquidDots"></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; } .mainHeading { color: rgb(6, 2, 114); text-align: center; } .mainDiv { display: flex; justify-content: center; margin-top: 1rem; } .animatedLiquidDots { border-radius: 50%; width: 16px; aspect-ratio: 1/1; background-color: #0094ff; position: relative; margin: auto; box-shadow: 32px 0px 0px 0px #0094ff, -32px 0px 0px 0px #0094ff; } .animatedLiquidDots::after { content: ""; position: absolute; inset: 0; border-radius: 50%; width: 16px; aspect-ratio: 1/1; background-color: #0094ff; animation: animatedLiquidDots 2s linear infinite; } @keyframes animatedLiquidDots { 0% { opacity: 0; transform: translateX(-32px) scale(1, 1); } 10% { opacity: 1; transform: translateX(-32px) scale(1, 1); } 20% { transform: translateX(-24px) scale(1.2, 0.8); } 30% { transform: translateX(-16px) scale(0.7, 0.7); } 40% { transform: translateX(-8px) scale(1.2, 0.7); } 50% { transform: translateX(0px) scale(1, 1); } 60% { transform: translateX(8px) scale(1.2, 0.7); } 70% { transform: translateX(16px) scale(0.7, 0.7); } 80% { transform: translateX(24px) scale(1.2, 0.8); } 90% { opacity: 1; transform: translateX(32px) scale(1, 1); } 100% { opacity: 0; transform: translateX(32px) scale(0.9, 0.9); } }
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; } .animatedLiquidDots { border-radius: 50%; width: 16px; aspect-ratio: 1/1; background-color: #0094ff; position: relative; margin: auto; box-shadow: 32px 0px 0px 0px #0094ff, -32px 0px 0px 0px #0094ff; } .animatedLiquidDots::after { content: ""; position: absolute; inset: 0; border-radius: 50%; width: 16px; aspect-ratio: 1/1; background-color: #0094ff; animation: animatedLiquidDots 2s linear infinite; } @keyframes animatedLiquidDots { 0% { opacity: 0; transform: translateX(-32px) scale(1, 1); } 10% { opacity: 1; transform: translateX(-32px) scale(1, 1); } 20% { transform: translateX(-24px) scale(1.2, 0.8); } 30% { transform: translateX(-16px) scale(0.7, 0.7); } 40% { transform: translateX(-8px) scale(1.2, 0.7); } 50% { transform: translateX(0px) scale(1, 1); } 60% { transform: translateX(8px) scale(1.2, 0.7); } 70% { transform: translateX(16px) scale(0.7, 0.7); } 80% { transform: translateX(24px) scale(1.2, 0.8); } 90% { opacity: 1; transform: translateX(32px) scale(1, 1); } 100% { opacity: 0; transform: translateX(32px) scale(0.9, 0.9); } }
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