Typing effect using typed.js
Hello Guys! In this blog, I'm going to explain to you how to make an amazing typing effect using Typed.js. We can use this in our landing pages for better impressions. This will be a step-by-step guide including HTML and CSS. Let's get started 🚀.
Let's cover the HTML part
Now let's import the fonts using Google Fonts API. Below is the code for Poppins Font. Paste the below code in head tag.
Now let's design the container in our <body> tag. In the below HTML code, we have created a container that contains welcome heading and designation which will have a type effect.
Here is the Final HTML Code
Output Till Now
Let's understand CSS Part
In the below CSS code,
- We declare a * selectors to set the font Poppins that we have imported in our head tag.
- Next we declare a body selector which consists of styles for dark mode and aligns all elements in the body to the center.
- Next we have the container which has border-radius property for curve effect and padding property.
Output Till Now
Finally a JavaScript Part
The below javascript code is from official documentation of Typed.js library.
If you want me to code any project or post any specific post,
feel free to DM me at IG @code.scientist or @codingtorque
If you have any doubt or any project ideas feel free to
Contact Us
Hope you find this post helpful💖
Written by: Coding Torque | Piyush Patil
Follow us on Instagram for more projects like
this👨💻