Skip to content

Latest commit

 

History

History

26-Text typing animation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
author handle source date likes retweets replies
Ajay Yadav 🎯
@ATechAjay
December 12, 2021 2:55 PM
9
10
2

ATechAjay Ajay Yadav 🎯 (@ATechAjay) - December 12, 2021 2:55 PM

💚Day 2️⃣6️⃣ / 1️⃣ 0️⃣0️⃣ days of Master in CSS Design series!

💥Today we going to build text typing animation using HTML CSS.

❓What's the main logic behind it with the codepen link?

#100DaysOfCode
#webdevelopment
#CodeNewbie

Let me explain👇🧵 pic.twitter.com/WbalV6Ridi

Tweet link


ATechAjay Ajay Yadav 🎯 (@ATechAjay) - December 12, 2021 2:55 PM

🟢 So first we will design the text.

🔴 During this design, there are three most important things in it.

Tweet link


ATechAjay Ajay Yadav 🎯 (@ATechAjay) - December 12, 2021 2:55 PM

1️⃣ We have to use this property to create the cursor.

👇 pic.twitter.com/X0BepkCxL0

3_1469977915441909767

Tweet link


ATechAjay Ajay Yadav 🎯 (@ATechAjay) - December 12, 2021 2:55 PM

2️⃣ Now we want the text to animate in a single line, so for that, we have to use this property.

👇 pic.twitter.com/zXQoVibbqL

3_1469978267415318530

Tweet link


ATechAjay Ajay Yadav 🎯 (@ATechAjay) - December 12, 2021 2:55 PM

3️⃣ Then we want that the text should not flow on the right side of the cursor, so for that, we have to use this property.

👇 pic.twitter.com/ocdRwtKV1E

3_1469979584829423616

Tweet link


ATechAjay Ajay Yadav 🎯 (@ATechAjay) - December 12, 2021 2:55 PM

🟢 Now we want the text to animate in multiple steps.

So for this, we have to use the steps() function.

👇 pic.twitter.com/X70c55axSw

3_1469979935678746624

Tweet link


ATechAjay Ajay Yadav 🎯 (@ATechAjay) - December 12, 2021 2:55 PM

🟢 Now we want to make the cursor blink.

0 - 40 = transparent 40 - 100 = red

👇 pic.twitter.com/o4lpbSPFXv

3_1469980673108676608

Tweet link


ATechAjay Ajay Yadav 🎯 (@ATechAjay) - December 12, 2021 2:55 PM

🟢 Now we have to move the text letterwise.

👀 ch = character

start = 0 character final = display all character.

👇 pic.twitter.com/Aw2g3meicX

3_1469981247405314048

Tweet link


ATechAjay Ajay Yadav 🎯 (@ATechAjay) - December 12, 2021 2:55 PM

codepen:

codepen.io/atechajay/pen/…

Tweet link