Mon - Sun 8.00 AM - 8.00 PM
[email protected]
Home
Articles
Our Courses
HTML 5
CSS
JavaScript
MySql
PHP
Laravel
Bootstrap
Our Tutorials
PHP
JavaScript
HTML
Laravel
MySQL
JQuery
CSS
Git
Bootstrap
Vue JS
Android
Ui Code Snippets
Chat Box
Range Slider
Radio Button
Select Box
Nav Bar
Other
Testimonial
Carousel
Logo
Loader
Lightbox
Login Form
Modals
OTP Verification Form
Popular Notes
HTML
CSS
JavaScript
SQL
Services
About
Contact Us
Ui Code
Snippets
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>
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); } }
JS
Output