tameemsafi / typewriterjs

A simple yet powerful native javascript plugin for a cool typewriter effect.
https://www.npmjs.com/package/typewriter-effect
MIT License
2.49k stars 221 forks source link

Please add "delete typing" when state change in strings options #129

Open Sakkhor909 opened 3 years ago

Sakkhor909 commented 3 years ago

Here Massage is props that manage a state and changing from a click event handeler function. function Monitor({ Massage }) { return ( <Typewriter options={{ strings: Massage, autoStart: true }} /> ); } export default Monitor;

When I click, string change but it fully despairs first then start typing from scratch. It will be cool when it's deleting first then add a new string. Please consider it for the next update. Thanks for the packege.