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/Start typist on trigger #78

Open
liltrendi opened this issue Nov 24, 2019 · 7 comments
Open

Stop/Start typist on trigger #78

liltrendi opened this issue Nov 24, 2019 · 7 comments

Comments

@liltrendi
Copy link

liltrendi commented Nov 24, 2019

Is there a callback or prop for starting or stopping Typist depending on a trigger? I'm using React-Fullpage and want the typing to start upon page scroll. Currently, when the page is scrolled to the typing will have already began and possibly finished. I was wondering whether there was an inbuilt callback for waiting/delaying the typing until I direct it to begin. Nice package though!

@testuserplzignore
Copy link

one workaround would be not mounting the typing component until you actually reach that point in the page.

@EtienneBerube
Copy link

I would also love to have this feature for accessibility reasons. Such that someone that is easily distracted could play/pause this animation.

@ghost
Copy link

ghost commented Jun 14, 2020

Is it possible to make it indefinite loop?

@testuserplzignore
Copy link

testuserplzignore commented Jun 15, 2020

@buxzee if you change the key of the component when it finishes typing it will remount and begin the animation again.

@amresha
Copy link

amresha commented Jun 17, 2020

@buxzee if you change the key of the component when it finishes typing it will remount and begin the animation again.

@ElllGeeEmm thank you for your response. I am getting this below error can you guide whats the issue. I have installed using this command npm install react-typist --save and also imported to the page where I want to use this plugin import Typist from 'react-typist';

UNHANDLED REJECTION Unable to find plugin "react-typist". Perhaps you need to install its package?
  Error: Unable to find plugin "react-typist". Perhaps you need to install its package?

@lawrence-witt
Copy link

Seems very odd that this was never a feature. I thought maybe I could toggle stop/start by changing avgTypingDelay to be a very high number, but the previous delay is not cancelled when changing it back to 'start' mode so it just stalls out.

@Abhiram716
Copy link

Is it possible to make it indefinite loop?

@ghost did you find any workaround with this?

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