react-typing-animation
react-typing-animation copied to clipboard
Backspace speed overriding Typing speed
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.
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.