react-typist
react-typist copied to clipboard
Stop/Start typist on trigger
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!
one workaround would be not mounting the typing component until you actually reach that point in the page.
I would also love to have this feature for accessibility reasons. Such that someone that is easily distracted could play/pause this animation.
Is it possible to make it indefinite loop?
@buxzee if you change the key of the component when it finishes typing it will remount and begin the animation again.
@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?
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.
Is it possible to make it indefinite loop?
@ghost did you find any workaround with this?