Sha256: 5a3b4b134f2c3ab5d62d150c76819c2bee10b09c99a4f47a7662f272803195eb

Contents?: true

Size: 380 Bytes

Versions: 1

Compression:

Stored size: 380 Bytes

Contents

var i = -18; // fudge to delay start of typing
var txt = 'Start a new project or just have a chat_'; /* The text */
var speed = 40; /* The speed/duration of the effect in milliseconds */

function typeWriter() {
  if (i < txt.length) {
    document.getElementById("typeWriter-container").innerHTML += txt.charAt(i);
    i++;
    setTimeout(typeWriter, speed);
  }
}

typeWriter()

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
made-slowly-0.0.1 assets/js/typing-effect.js