Ad Code

Ticker

6/recent/ticker-posts

How to make a colorful preloader | Multicolor | Very easy | Abhicoder

            Welcome coding lover friends! Today in this blog, I want to share that how to create the Color Changing Shiny Multicolor Loader using only HTML & CSS only. With just a few lines of code! 😱Some features of this are as follows:-

  • It can be Embed on your website.
  • It can be set as an animation of loading while switching one to another page.
  • This is the easiest preloader and with few codes.

Screenshot of the loader


        So here is the video for the same:-



The process of coding for Preloader

You can see the video on the top☝ or look below👇:-

   At first, I created a file name Index.html and style.css. After that, I opened my favorite Visual Studio Code. Then open the Index.html and style.css file in the code editor, I opened the Index.html and style.css file in the code editor. Then in the body section, I created a div(division) and give its class as "loader".

By this process, the HTML part is completed. Now the CSS part

   In the body section of the CSS file, the alignment is set to center, and the background to #000 means black, and the process for the code is given below. 

Here is the code of it:-

HTML code

<!DOCTYPE html>
<html lang="en">
<head>
    <!--With love by Abhicoder!-->
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" type="text/css" href="Style.css">
    <title>Multicolor loding effect | Abhicoder</title>
</head>
<body>
    <div class="loader"></div>
</body>
</html> {codeBox}




CSS code

*{
    margin0;
    padding0%;
    box-sizingborder-box;
}
body{
    displayflex;
    justify-contentcenter;
    align-itemscenter;
    min-height100vh;
    background#000;
}
.loader{
    positionrelative;
    width150px;
    height150px;
    border-radius50%;
    backgroundlinear-gradient(47degtransparenttransparent 40%#e5f403);
    animation:  animate 2s linear infinite;
}
@keyframes animate
{
    0%
    {
        transformrotate(0deg);
        filterhue-rotate(0deg);
    }
    100%
    {
        transformrotate(360deg);
        filterhue-rotate(360deg);
    }
}
.loader:before{
    content'';
    positionabsolute;
    top6px;
    left6px;
    right6px;
    bottom6px;
    background#000;
    border-radius50%;
    z-index1000;
}
.loader:after{
    content'';
    positionabsolute;
    top6px;
    left6px;
    right6px;
    bottom6px;
    backgroundlinear-gradient(47degtransparenttransparent 40%#e5f403);
    border-radius50%;
    z-index1000;
    z-index1;
    filterblur(30px);
} {codeBox}

    So that's it for today's blog. Now you can successfully create a Multicolor loader. This will give a good effect on your website and a pleasant experience for the viewers. 

     Hope you like it, coding lovers. If you like it, please leave a like and comment on this video and if you are new to my channel, then please subscribe to my channel ABHICODER.

Keep visiting!! 

                                          Goodbye coders!



Post a Comment

0 Comments

Ad Code