This project demonstrates a dynamic typing text effect using the Typed.js library. It's a simple and customizable way to create animated typing effects for your website.
I started by setting up a basic HTML structure for the project, where I wanted to display a dynamic text that changes over time. The idea was to animate words like "Game Developer," "Web Developer," and "Content Creator."
I integrated the Typed.js CDN directly into the HTML. This library handles the typing animation effect by automatically cycling through predefined strings, typing them out, backspacing, and then typing the next string.
Next, I wrote a simple JavaScript snippet to configure Typed.js. The key parameters I customized include:
- strings: I defined an array of roles (
["Game Developer", "Web Developer", "Content Creator"]
) that I wanted to display in rotation. - typeSpeed and backSpeed: These control how fast the text is typed and erased. I set both speeds to
150
milliseconds for a balanced typing and deleting effect. - loop: I set this to
true
so that the text continuously loops without stopping.
This made it easy to add multiple roles that get displayed dynamically in sequence.
To ensure the effect looks good on the page, I added basic CSS for centering the text and applying a simple design. This enhanced the visual appeal and kept the focus on the typing effect.
- Dynamic Typing: The project animates typing text effects for multiple strings.
- Customizable Speeds: You can easily adjust the typing and backspacing speeds.
- Looping: The text loops indefinitely, making it suitable for a personal website or portfolio.
- Include the Typed.js CDN: Add the Typed.js library to your HTML via a CDN.
- Configure the Effect: Customize the strings and speeds in your JavaScript file.
- Style the Text: Use CSS to match the design to your website.
This project is a simple demonstration of how Typed.js can create a professional-looking typing effect with minimal setup. It’s a great tool for adding interactive and eye-catching text animations to any website.
This project is licensed under the MIT License. See the LICENSE file for details.
Stay connected! Follow me on Socials.