Skip to content

Instantly share code, notes, and snippets.

@lincerely
Last active July 30, 2018 12:09
Show Gist options
  • Save lincerely/d5711def67114443b7c389ef0b0c663c to your computer and use it in GitHub Desktop.
Save lincerely/d5711def67114443b7c389ef0b0c663c to your computer and use it in GitHub Desktop.
typed js example
<html>
<head>
<title> typed js example </title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/typed.js/2.0.8/typed.min.js"></script>
</head>
<body>
<p>Typed js is typing: <span id="type-me"></span></p>
<script>
var options = {
strings: ["Hello", "World"],
typeSpeed: 20,
loop: true
}
var typed = new Typed("#type-me", options);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment