react-typing-animation icon indicating copy to clipboard operation
react-typing-animation copied to clipboard

Backspace speed overriding Typing speed

Open diegohaz opened this issue 6 years ago • 1 comments

Hi, @adamjking3. Thank you for this project. I'm using it on the new docs of https://github.com/diegohaz/reas

I'm trying to set different speeds for the typing and backspace, but it seems that backspace speed is overriding typist speed.

Reproduction: https://codesandbox.io/s/k25p7r924v

I was able to fix it with a workaround:

<Typing.Backspace speed={20} count={word.length - 1} />
<Typing.Backspace speed={200} count={1} />

But it would be better if it worked out of the box.

diegohaz avatar Jun 17 '18 08:06 diegohaz

One possible fix for this, would be to only apply that speed for the next x characters, where x is specified by props.count in the Backspace component. Otherwise, adding a Speed component after the Backspace is meant for this purpose.

notadamking avatar Dec 24 '18 23:12 notadamking