client/src/utils/typeWriter.js
/* The speed/duration of the effect in milliseconds */
The speed/duration of the effect in milliseconds
The speed / duration of the effect in milliseconds
function typeWriter(len, id, _txt){
  if (len < _txt.length) {
    document.getElementById(id).innerHTML += _txt.charAt(len);
    len++;
    setTimeout(() => typeWriter(len, id, _txt), speed);
  }
}
function typeWriter ( len , id , _txt ) { if ( len < _txt . length ) { document . getElementById ( id ) . innerHTML += _txt . charAt ( len ) ; len ++ ; setTimeout ( ( ) => typeWriter ( len , id , _txt ) , speed ) ; } }
The speed/duration of the effect in milliseconds
The speed / duration of the effect in milliseconds