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>