Closed mkabatek closed 1 year ago
Same problem, would be nice to have a method to remove/hide it.
As a workaround you could just remove the cursor element, after the text has been written.
new Typewriter('#typewriter', {
strings: message,
autoStart: true,
delay: 30,
}).callFunction(() => {
document.querySelector(".Typewriter__cursor").remove();
});
Thanks @qwerty084
You can use the changeCursor
method to change the cursor to an empty string
For those wondering how to do this in react:
<TypewriterComponent
options={{
autoStart: true,
}}
onInit={(typewriter) => {
typewriter.typeString("Hello I am <insert name>").callFunction((state) => {
state.elements.cursor.remove();
});
}}
/>
It would be nice if there was a way to change or stop the cursor from blinking when done typing.