straversi / Typer.js

Typing effect completely configurable in HTML.
http://steven.codes/typerjs
MIT License
135 stars 23 forks source link

Stop typer automatically #8

Open ranggasan opened 6 years ago

ranggasan commented 6 years ago

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

straversi commented 6 years ago

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

shubdev07 commented 6 years ago

please introduce this functionality

straversi commented 6 years ago

@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?

andrebrandao-dev commented 6 years ago

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

straversi commented 6 years ago

@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?

rehashedprime commented 5 years ago

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

Faktor22 commented 5 years ago

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

straversi commented 5 years ago

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