react-typist icon indicating copy to clipboard operation
react-typist copied to clipboard

Stop/Start typist on trigger

Open liltrendi opened this issue 5 years ago • 7 comments

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!

liltrendi avatar Nov 24 '19 19:11 liltrendi

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

testuserplzignore avatar Dec 10 '19 18:12 testuserplzignore

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

EtienneBerube avatar Apr 14 '20 16:04 EtienneBerube

Is it possible to make it indefinite loop?

ghost avatar Jun 14 '20 23:06 ghost

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

testuserplzignore avatar Jun 15 '20 03:06 testuserplzignore

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

amresha avatar Jun 17 '20 20:06 amresha

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.

lawrence-witt avatar Jul 27 '21 10:07 lawrence-witt

Is it possible to make it indefinite loop?

@ghost did you find any workaround with this?

Abhiram716 avatar Jul 17 '23 10:07 Abhiram716