Skip to content

tobyck/title-animation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

JS Title Animation

<script src="https://modules.tobyck.surge.sh/title-animation/script.js"></script>

Functions

  • element.setText(text, fadeInTime, delay) - Set the text of an element to the text provided in a way that makes in animatable with the following functions.
  • element.clearText(delay) - Removes the text from an element.
  • element.animateText(YpositionToAnimateTo, animationTime, delay) - Animates the element to the Y position provided (e.g "60vh"). All times are in milliseconds, and default to 0. It is also important to note that delay times are asynchronous.

Example

'Hello World!' being animated up and down like a wave

About

JS module for a wave-like title animation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published