[Vuejs]-How to make a typing effect in vuejs

0👍

You should not be calling the outText method when you pass it as an argument to setTimeout, doing so will call the method immediately, instead you want to pass the method to setTimeout so it can be called later after the timeout has elapsed.

Incorrect:

setTimeout(this.outText(), 100000)

Correct:

setTimeout(this.outText, 100000)

Also 100000ms (100s) is too long of a delay to notice anything.

Leave a comment