adc

clicks

Waves Animation Effect Pure CSS | CSS Animation Effects source code

 Waves Animation Effect Pure CSS |  CSS Animation Effects source code

Find awesome text animations that you can use in your web projects. We have handpicked some really creative text animation that you can use on various web design projects. From pure CSS to animated 

 

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>Waves animation pure css</title>
  <link rel="stylesheet" href="styles.css">
</head>
<body>

    <div class="waves">
        
    </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;
            background: black;
        }
        .waves{
            position: absolute;
            bottom: 0;
            left:0;
            right: 0;
            background:#6699ff;
            height: 400px;
            box-shadow: inset 0 0 50px rgba(0,0,0,0.5) ;
            transition: 500ms;
        }

        .waves::before, .waves::after{
            content: "";
            position: absolute;
            width: 300vw;
            height: 300vw;
            top: -65vw;
            left: 50%;
            border-radius: 44%;
            transform: translate(-50%, -75%);
        }
        .waves::before{
            background:rgba(51,51,51,1);
            animation: waves 8s linear infinite;
        }

        .waves::after{
            background:rgba(51,51,51,0.4);
            animation: waves 15s linear infinite;
        }

        @keyframes waves{
            0%{
                transform: translate(-50%, -75%) rotate(0deg);
            }
            100%{
                transform: translate(-50%, -75%) rotate(360deg);
            }
        }

 

 

 

Youtube Video

 


Waves Animation Effect Pure CSS | CSS Animation Effects source code Waves Animation Effect Pure CSS |  CSS Animation Effects source code Reviewed by easycoding on August 06, 2020 Rating: 5

No comments:

Powered by Blogger.