Last active
July 30, 2018 12:09
-
-
Save lincerely/d5711def67114443b7c389ef0b0c663c to your computer and use it in GitHub Desktop.
typed js example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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
Demo: https://cdn.rawgit.com/lincerely/d5711def67114443b7c389ef0b0c663c/raw/ae852e322dd965331bd27a67acb9d00faed28cd8/typed.html