Skip to content

It allows you to implement a typewriter effect very easily and with light-weight javascript. With pure javascript...

Notifications You must be signed in to change notification settings

SafakB/text-typewriter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Typewriter Effect

Author: Safak Bahce
Date: 2023-05-29

Description

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).

How to Use

  1. Include the typewriter.js script in your HTML file.
  2. Add the 'typewriter' class to any HTML element that you want to apply the typewriter effect to.
  3. 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>

Contact

If you have any questions or suggestions, feel free to contact me at

About

It allows you to implement a typewriter effect very easily and with light-weight javascript. With pure javascript...

Resources

Stars

Watchers

Forks

Packages

No packages published