Animated typing effect using CSS


Posted on May 10, 2021, 8 p.m. by Bishal     (  2272)


Card Thumbnail
Hi Everyone, Code With Bishal is back with a new project. So grab your PC and open your favourite Code Editor and start coding with me. In this blog, we will create an animated typing effet using CSS. Continue reading this blog to take a demo of the typing effect. All the downloadable resources are attached to this blog, You can easily download these with the help of the buttons below.

 

What is a text animation using CSS?

Our awesome, text animation using CSS gives visitors an attractive, responsive, text animation using CSS. You can also add these to your website or to your portfolio and can create a great impression in front of your visitors.

 

How can I use this text animation using CSS?

You can easily copy the code or can download the code from our website and can simply paste it anywhere to get the text animation using CSS.

 

Do I need to know how to code?

No, you don't need to know how to code you can simply copy code from here and paste it wherever you want your text animation using CSS. Also, you can try it on our website using the "TRY IT NOW" option or can download the code using the "Download" button below.

 

What are the advantages of text animation using CSS?

Text animation using CSS is a very good way to design your website or your portfolio.

 

How can I download the source code of the text animation using CSS?

Scroll the page to the bottom there you will find our download button to download the code.

 

In this blog, you can learn, how to make a text animation using CSS using HTML and CSS By Code With Bishal. Just Copy The Code From Here And Paste It Into Your Website or portfolio. To Preview scroll the page to the beginning. If you are having any problem viewing the code just refresh the page. The text animation using CSS is a lightweight and easy-to-use HTML and CSS code that creates a text animation using CSS for you. In this blog, there are fifth sections on the webpage, in the first section, you can get a preview of the blog, in the second section there are few FAQs and an overview of the blog, in the third section there are few more coding blogs you might like, in the fourth section you can Try our text animation using CSS using the "TRY IT NOW" button, after that, you can copy the code and paste it [that's the fifth section] and from the last section You can download the source code.

 

Some Screenshots

Animated typing

 

Step by step guide of creating a text animation using CSS:

So this time I have something interesting you can put this where your clients or visitors will land or landing page and this will show a nice animation to your viewers. The first step is to add the broiler plate of HTML, you can add this from below.

 

  • Create a file with the name index.html

  • Open index.html

  • Add the Broiler plate of HTML

Broiler Plate of HTML:

 

<!DOCTYPE html>
<html>
<head>
<title>Typing Effect - Code With Bishal</title>
</head>
<!-- created by Code With Bishal - www.codewithbishal.com
-->
<body>
</body>
</html>

 

After adding the broiler plate of HTML add the texts you want to animate inside a unordered list (UL)

 

<ul class="dynamic-text">
<li><span>Front End Dev</span></li>
<li><span>Back End Dev</span></li>
<li><span>Full Stack Dev</span></li>
<li><span>Freelancer</span></li>
</ul>

 

Then add the styling
Now, let's add the CSS or style to our HTML file and this will do the styling of our text animation. So our second step is to add the CSS file, you can copy the code from below

 

  • Create a file style.css

  • Link External CSS file with your HTML file

Here is how can you link:

Add these code in the <head>  </head> of your HTML document:

 

<link href="style.css" rel="stylesheet">

 

Now add some CSS code to the style.css file:

@import url('https://fonts.googleapis.com/css2?family=Akaya+Telivigala&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Akaya Telivigala', sans-serif;
}
.dynamic-text{
height: 90px;
overflow: hidden;
}
.dynamic-text li{
list-style: none;
color: #105be7;
font-size: 60px;
font-weight: 500;
position: relative;
top: 0;
animation: slide 12s steps(4) infinite;
}
.dynamic-text li span{
position: relative;
margin: 5px 0;
line-height: 90px;
}
.dynamic-text li span::after{
content: "";
position: absolute;
left: 0;
height: 100%;
width: 100%;
background: #fff;
border-left: 2px solid #1475f3;
animation: typing 3s steps(10) infinite;
}

 

We have successfully added style to our animated text.
Now, add animation to the text

 

@keyframes typing {
40%, 50%{
left: 100%;
}
100%{
left: 0;
}
}
@keyframes slide {
100%{
top: -360px;
}
}

 

Source Code

1) HTML Code:

 

<!DOCTYPE html>
<html>
<head>
<title>Typing Effect - Code With Bishal</title>
</head>
<!-- created by Code With Bishal - www.codewithbishal.com
-->
<body>
<ul class="dynamic-text">
<li><span>Front End Dev</span></li>
<li><span>Back End Dev</span></li>
<li><span>Full Stack Dev</span></li>
<li><span>Freelancer</span></li>
</ul>
</body>
</html>

 

2) CSS Code:

 

@import url('https://fonts.googleapis.com/css2?family=Akaya+Telivigala&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Akaya Telivigala', sans-serif;
}
body{
display: flex;
align-items: center;
justify-content: center;
background: #fff;
}
.dynamic-text{
height: 90px;
overflow: hidden;
}
.dynamic-text li{
list-style: none;
color: #105be7;
font-size: 60px;
font-weight: 500;
position: relative;
top: 0;
animation: slide 12s steps(4) infinite;
}
@keyframes slide {
100%{
top: -360px;
}
}
.dynamic-text li span{
position: relative;
margin: 5px 0;
line-height: 90px;
}
.dynamic-text li span::after{
content: "";
position: absolute;
left: 0;
height: 100%;
width: 100%;
background: #fff;
border-left: 2px solid #1475f3;
animation: typing 3s steps(10) infinite;
}
@keyframes typing {
40%, 50%{
left: 100%;
}
100%{
left: 0;
}
}

 

 





Leave a Comment:
Guest
Wow! Finally, I got a webpage from where I will be able to truly take useful facts concerning my study and knowledge. ~ basil.lipscomb