【文件属性】:
文件名称:dom-typer.js:使用Typer样式将字符串输出到DOM
文件大小:72KB
文件格式:ZIP
更新时间:2021-05-08 07:34:45
JavaScript
dom-typer.js
什么是dom-typer.js?
dom- typer是JavaScript中的插件,可用于以typer样式输出字符串。
用法
安装
npm install dom-typer --save
进口
import Typer from 'dom-typer'
基本用途
const typer = new Typer ( 'I will be output letter by letter.' )
typer . type ( ( o ) => {
console . log ( o )
} )
// you can reuse later by doing this
typer . targetString = 'Other string that you want to output.'
typer . type ( ( o ) => {
con
【文件预览】:
dom-typer.js-main
----package.json(623B)
----babel.config.json(296B)
----package-lock.json(124KB)
----.DS_Store(6KB)
----static()
--------accent.gif(52KB)
--------base.gif(66KB)
----src()
--------index.js(4KB)
----.gitignore(21B)
----lib()
--------index.js(4KB)
----README.md(2KB)