Goal: I am wanting to get my ascii text to animate, but only once. So noting shows, then the animation shows, and once the animation finishes (for the first time), it stays on the screen; static.
The fadeIn property doesn't seem to do anything for me. IDK what the originaly intent for fadeIn was; but I noticed that fadeIn wasn't documented in the read me. Maybe this was removed on purpose?
Here's a hacky work around I found: pass an array to text and set isPaused to a boolean state variable that you mutate in a useEffect after the first string in the array has finished animating using setTimeout.
Cool project thanks for this!
Goal: I am wanting to get my ascii text to animate, but only once. So noting shows, then the animation shows, and once the animation finishes (for the first time), it stays on the screen; static.
The
fadeIn
property doesn't seem to do anything for me. IDK what the originaly intent forfadeIn
was; but I noticed thatfadeIn
wasn't documented in the read me. Maybe this was removed on purpose?Here's a hacky work around I found: pass an array to
text
and setisPaused
to a boolean state variable that you mutate in auseEffect
after the first string in the array has finished animating usingsetTimeout
.