adc

clicks

Gradient Loader Ring Animation Effects in CSS With Demo and Free Source Code Download

 Gradient Loader Ring Animation Effects in CSS With Demo and Free Source Code Download

 

 HTML

Before we start writing code first, we need to create a primary structure of the HTML document, so that the browser can understand and start working. The basic HTML structure looks like the following.

After writing the primary structure of the HTML document, you will also write the tags and content you need. After that, you can see the output in your browser. We know that HTML Sudu Mae is used for exposing content in a basic format. To complete our content we need to use CSS, which is an HTML insert and it creates an engaging user interface.

<!DOCTYPE html>
<html>
<head>
    <title>circle animation</title>
    <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>

    <div class="circle">
        <span></span>
        <span></span>
        <span></span>
    </div>

</body>
</html>

CSS

 Now, we have time to improve the HTML content, for that, we need to add CSS to the HTML file. CSS can be added to HTML documents in a total of three ways, here we are using outside CSS design using CSS will arrive here after typing and see the output in your browser.

 body{
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
}

.circle{
    position: relative;
    width: 60vh;
    height: 60vh;
    background: linear-gradient(#33ccff, #ff0066);
    border-radius: 50%;
    top: 150px;
    animation: animate 0.5s linear infinite;
}

@keyframes animate{
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}

.circle:after{
    content: "";
    position: absolute;
    top: 35px;
    right: 35px;
    bottom: 35px;
    left: 35px;
    background-color: black;
    border-radius: 50%;
}


.circle span{
    position: absolute;
    width: 100%;
    height: 100%;
    background:linear-gradient(#33ccff, #ff0066);
    border-radius: 50%;
}

span:nth-child(1){
    filter: blur(5px);
}
span:nth-child(2){
    filter: blur(10px);
}
span:nth-child(3){
    filter: blur(20px);
}
span:nth-child(4){
    filter: blur(30px);
}

 

 Watch Full Videos 

 

 

Youtube Channel

 

Gradient Loader Ring Animation Effects in CSS With Demo and Free Source Code Download Gradient Loader Ring Animation Effects in CSS With Demo and Free Source Code Download Reviewed by easycoding on August 13, 2020 Rating: 5

No comments:

Powered by Blogger.