How To

How to Create Ripple Effect Loader Using CSS

Ripple effect loaders feel very smooth on websites and make it more user friendly.

Generally, the ripple effect is used on buttons for a smooth click experience. Even more, many operating systems and applications use a ripple effect for good user experience.

Ripple Effect Website Loader

The given code is for ripple loader using pure CSS.

<!DOCTYPE html>
<html>
   <head>
      <title>Ripple Effect With CSS</title>
      <style>
         .ripple-back {
         z-index: 1;
         height: 100%;
         width: 100%;
         position: fixed;
         background-color: #fff;
         display: block;
         }
         .ripple-loader {
         top: calc(50% - 50px);
         left: calc(50% - 50px);
         position: fixed;
         width: 100px;
         height: 100px;
         border-radius: 50%;
         background-color: #1a237e;
         }
         .ripple-loader:before {
         content: 'Loading';
         position: absolute;
         font-family: 'Open Sans', sans-serif;
         font-size: 1.3em;
         margin: 38% 0% 0% 14%;
         color: #FFF;
         }
         .ripple-loader:after {
         content: '';
         position: absolute;
         width: 100px;
         height: 100px;
         border: 2px solid #1a237e;
         border-radius: 50%;
         transform: translate(-50%, -50%);
         top: 50%;
         left: 50%;
         -webkit-animation: ripple 1.5s ease-out infinite;
         -moz-animation: ripple 1.5s ease-out infinite;
         -ms-animation: ripple 1.5s ease-out infinite;
         -o-animation: ripple 1.5s ease-out infinite;
         animation: ripple 1.5s ease-out infinite;
         }
         @keyframes ripple{
         0%{
         width: 100px;
         height: 100px;
         opacity: 1;
         }
         96%{
         width: 400px;
         height: 400px;
         opacity: 0;
         }
         100%{
         width: 400px;
         height: 400px;
         opacity: 0;
         }
         }
      </style>
   </head>
   <body>
      <div class="ripple-back" id="ripple-loader">
         <div class="ripple-loader"></div>
      </div>
   </body>
</html>

Read Also: How to Change Button Color on Hover Using CSS

Conclusion

Now you can apply the ripple effect loader to your personal project or website effortlessly. You can also do some creative using ripple effect animations on the website.

I hope you found this post quite impressive and helpful.

Enjoy Designing 🙂

Nachiket Panchal

Founder & Administrator of `errorsea` Having interest in Programming & Technology.

Recent Posts

5 Important Things To Know About WordPress Before You Use It

There is a reason big-name companies like CNN use WordPress. WordPress is a popular content…

3 years ago

How to Install MySQL on Your PC in 3 Easy Steps

In this tutorial, I'm going to show you how to install MySQL on your computer.…

5 years ago

Download and Install Turbo C++ for Windows 10 (Full Installation Guide)

Download Turbo C++ for windows 10 in just 7 Mb and run your first C++…

5 years ago

PHP .HTACCESS Redirects

We can redirect any webpage to any other or redirect the whole domain or website…

5 years ago

PHP Redirect Pages

There are lots of methods to redirect pages, like refresh-redirect from META tag, redirect from…

5 years ago

PHP Include & Required

Include files in PHP are used in appending various global or config files. We can…

5 years ago