Skip to content

A lightweight JavaScript module for fading in text one letter at a time

License

Notifications You must be signed in to change notification settings

KybraNET/FadeInJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

FadeInJS

A lightweight JavaScript module for fading in text one letter at a time

Usage

Import the fadeInText function from the fadeintext.js module and pass in a DOM element,
duration (in seconds)
synchronousity (in milliseconds per letter)
as arguments. For example:

import { fadeInText } from './fadeintext.js';

const element = document.getElementById('my-element');
fadeInText(element, 1, 50); //htmlElement, duration, synchronousity

Background

Inspired by the FadeIn Sequence from textilate.js You can achieve the same effect as using four libraries, making it more SEO-friendly.

Dependencies

Just plain js

License

About

A lightweight JavaScript module for fading in text one letter at a time

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published