Typer.js icon indicating copy to clipboard operation
Typer.js copied to clipboard

Stop typer automatically

Open ranggasan opened this issue 7 years ago • 8 comments

Is there any way to stop typer after sentence has completed?

ranggasan avatar Oct 20 '17 09:10 ranggasan

No, but great idea. I'll keep this issue open until it is implemented.

straversi avatar Dec 08 '17 19:12 straversi

please introduce this functionality

shubdev07 avatar Jan 10 '18 07:01 shubdev07

@shubdev07 could you give an example of how you would use it? I’d love to add this, and I want to make sure I understand the case. For example, do you have one word you want typed out? Or would you like it to stop after typing and deleting several words?

straversi avatar Jan 11 '18 19:01 straversi

i will appreciate it, if somehow we can stop typer with my final word data-words="Design, Create, Build, Planner" maybe with data-end="Build" to a specific word or just data-end="true" to stop with my final word

andrebrandao-dev avatar Mar 28 '18 15:03 andrebrandao-dev

@andrebrandaoo There is a data-loop count already that can be set to "1". So we can achieve the same effect by adding data-delete-last="false" or something to that effect. So to make data-word="design,create,build" stop on "build" without deleting, we could write:

... data-loop="1" data-delete-last="false" ...

data-delete-last="false" could even be the default functionality, as it makes more sense from a UI perspective. What do you think?

straversi avatar Mar 30 '18 01:03 straversi

I have reviewed the typer.js file & found no data-loop reference im trying to implement typer.js to give a terminal like feeling to a webpage but i break it everytime i try to get rid of the delete delay function.. any insight on how i can use typer.js without having the text deleted after being typed

rehashedprime avatar Dec 09 '18 06:12 rehashedprime

@straversi Any idea when you think you can implement this option?

Faktor22 avatar Feb 12 '19 14:02 Faktor22

👋 This is implemented now! data-loop="1" will type out all of the words in the list, then stop without deleting the last word.

straversi avatar Apr 06 '19 02:04 straversi