@_xie/vue-writer
v0.0.1
Published
Written in composition API
Downloads
8
Readme
My implementation of Vue Writer, inspired by Eric Quelch
Written in composition API
Feel free to raise issues and pull requests
Properties
text
- required: true
- type: string | Array
- description: text or array of text will be written by the component
iterations
- required: false
- default: 1
- type: number
- description: how many times the text will be typed and erased
typeSpeed
- required: false
- type: number
- description: speed in ms within which the text will be typed
eraseSpeed
- required: false
- type: number
- description: speed in ms within which the text will be deleted
startDelay
- required: false
- type: number
- description: speed in ms of start delay
eraseDelay
- required: false
- type: number
- description: speed in ms of erase delay
iterationDelay
- required: false
- type: number
- description: speed in ms of delay between each iteration
keepAlive
- required: false
- type: boolean
- default: false
- description: keep alive the string or the last element of the array
Example of usage
<template>
<div>
<Writer @done="hello"
:start-delay="1000"
:text="['Ciao', 'everyone']"
:erase-speed="109"
:iteration="1"
:erase-delay="1000" />
</div>
</template>