adc

clicks

Text Typing Animation Effects Using Html and CSS - Pure CSS Typing Effe

 Text Typing Animation Effects Using Html and CSS - Pure CSS Typing Effe

 

 

 


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.

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.

 

 <!DOCTYPE html>
<html>
<head>
    <title>typing text animation</title>
    <style type="text/css">
        
        body{
            margin: 0;
            padding: 0;
            background:#4c5659;    
            }
            p{
                margin: 20% 20%;
                overflow:hidden;
                white-space: nowrap;
                font-size: 170px;
                font-family: serif;
                color: white;
                border-right: solid 3px red;
                animation: animate-text 4s linear infinite;
                animation: animate-cursor 4s staps linear infinite;
                animation-direction: alternate;
            }

            @keyframes animate-text{
                from{
                    width: 0;
                    }
                    to{
                        width: 930px
                    }
            
            @keyframes animate-cursor{
                from{
                    border-right-color: #6c5ee7;
                }
                to{
                    border-right-color: transparent;
                }
                
            }

    </style>
</head>
<body>

    <p>Easy Coding</p>

</body>
</html>

 

 

Text Typing Animation Effects Using Html and CSS - Pure CSS Typing Effe Text Typing Animation Effects Using Html and CSS - Pure CSS Typing Effe Reviewed by easycoding on August 19, 2020 Rating: 5

No comments:

Powered by Blogger.