animates typing effect(打字机动画效果)
- 翻相册页脚
- https://productmap.co/
- http://www.stephanemartinw.com/
CSS
<link href="typing.css" rel="stylesheet">JS
<script src="typing.js"></script><span id="words"></span><span id="cursor">|</span>cursor is a blink "|", you can change it.
<input id="words" type="text" placeholder="">then set var isPlaceholder = true; (the cursor in placeholder isn't blink, it's waiting to solve...)
for one line text
var strings = new Array("text"); // single wordsor multi text
var strings = new Array("text1", "text2", "..."); // multi wordsmore options
<script>
var strings = new Array("text1", "text2", "...") ; // multi words
var typingSpeed = 100; // 打出每个字的间隔时间
var deleteSpeed = 40; // 删除每个字的间隔时间
var isLoop = true; // 是否循环,true/false
var waitTime = 800; // 打完一个字段后的等待时间
var isPlaceholder = false; // if you use tying.js for placeholder, set it true.
</script>