R
R
Rostyk Ice2019-01-10 18:55:23
css
Rostyk Ice, 2019-01-10 18:55:23

How to stop animation script from repeating?

Good day to all.
I found an animation suitable for the site, but could not figure out how to stop the re-animation.
CODE
I don't know how to speed up the animation.
Probyval everything that was smart enough in JS, but since there is not much of it, I was only able to change colors and numbers.
Tell me how to stop the animation after it is completed and, if possible, how to speed it up?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RAX7, 2019-01-10
@NiceIce

On line 117, comment out this.index = 0; to stop repeat.
The speed is passed as the delay parameter to the Text constructor on line 180.

text = new Text({
        copy: 'Grawer Warszawy',
        delay: 10,
    });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question