Author: Safak Bahce
Date: 2023-05-29
This script applies a typewriter effect to any HTML element with the 'typewriter' class. It uses the 'data-text' attribute for the text to type out and the 'data-speed' attribute to set the typing speed. If these attributes are not provided, it uses a default text and speed (100ms).
- Include the
typewriter.js
script in your HTML file. - Add the 'typewriter' class to any HTML element that you want to apply the typewriter effect to.
- Optionally, you can add the 'data-text' and 'data-speed' attributes to set the text and typing speed. If not provided, the default text and speed will be used.
Example:
<div class="typewriter" data-text="Hello, world!" data-speed="100"></div>
If you have any questions or suggestions, feel free to contact me at