Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide the cursor permanently in Typed JS

I want to hide the cursor permanently in TypedJS i.e. I don't want it to blink/show as it types. I have found some tutorials on how to hide it on complete but not how to hide it since beginning. How to achieve it?

like image 759
Sourav Das Avatar asked Oct 24 '25 05:10

Sourav Das


2 Answers

Just use the showCursor option.

 var typedX = new Typed('#animatedText', {
  strings: 
    ['Hello Hello Hello',  'World World World', 'Goodbye Goodbye Goodbye'],
  showCursor: false
});
<script src="https://cdn.jsdelivr.net/npm/typed.js"></script>

<div id="animatedText"></div>
like image 158
NineBerry Avatar answered Oct 25 '25 19:10

NineBerry


Deleting typed::after from css will help.

.typed::after {
    content: '|';
    display: inline;
    -webkit-animation: blink 0.7s infinite;
    -moz-animation: blink 0.7s infinite;
    animation: blink 0.7s infinite;
}

You can try it here.

like image 38
Koga Avatar answered Oct 25 '25 19:10

Koga



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!