Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop typer automatically #8

Open
ranggasan opened this issue Oct 20, 2017 · 8 comments
Open

Stop typer automatically #8

ranggasan opened this issue Oct 20, 2017 · 8 comments

Comments

@ranggasan
Copy link

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

@straversi
Copy link
Owner

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

@shubdev07
Copy link

please introduce this functionality

@straversi
Copy link
Owner

@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
Copy link

andrebrandao-dev commented Mar 28, 2018

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
Copy link
Owner

@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
Copy link

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
Copy link

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

@straversi
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants