Fork me on GitHub

iType.js仿输入文字效果

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<span id="ityped"></span>

<script src="https://unpkg.com/ityped@0.0.5"></script>
<script>
    ityped.init('#ityped', {
        strings:['我是文字一哦', '我是文字二哦', '我是文字3哦', '没有文字啦。。。'],
        startDelay: 200,
        loop: true
    });
</script>
</body>
</html>

 demo:https://controllerone.github.io/demo/ityped/

posted @ 2017-11-27 13:51  小白不白10  阅读(578)  评论(0编辑  收藏  举报