0.0.10 • Published 2 years ago
untyper v0.0.10
^^_^^ untyper
Looking forward to your feedback

Live demo
A simple typewriter for browser,Typing effects can be achieved using chained methods
🛹 TODO
- support custom typing effect
- support custom cursor
- support move cursor
- support add any document node
- ...
🚀 Feature
- use Web Animations API Api to achieve typing effect
- Support custom typing speed
Support chained methods
📦 Install
npm install untyperUsage
import { UnTyper } from 'untyper'
const text = document.querySelector('#text')
const unTyper = new UnTyper(text, { speed: 100, startDelay: 1000 })
unTyper.type('hi', { delay: 200 }).go()Api
type
Warning: only support string input
- text
string- opts:
object{ delay?:number, startDelay:number, animationspancontent:string, animate: { cancel:boolean, },} outputthispause
input
- ms
numberoutputthisdelete
input
- charAt:
number> 0- opts:
object-> delay?:numberoutputthismove
input
- movementArg:
number | null- opts?:
object-> {to?:string, delay?:number} outputthisadd
input
- text
string | HTMLElement- opts:
object-> delay?:numberoutputthis
go
output
Promise
License
0.0.10
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.3-alpha.2
3 years ago
0.0.3-alpha.1
3 years ago
0.0.2-alpha.1
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago
0.0.0
3 years ago