A dead simple and super tiny Vue.js component for animated typing in Vue.js app.
# NPM
$ npm install vue-typical --save
import typical from 'vue-typical'
<template>
<div id="app">
<typical
class="vt-title"
:steps="['Vue', 1000, 'Script', 500]"
:wrapper="'h2'"
></typical>
<typical
class="vt-subTitle"
:steps="['Vue', 1000, 'Script', 500, 'VueScript.com :-) 👋', 1000]"
:loop="3"
:wrapper="'h3'"
></typical>
</div>
</template>
export default {
name: 'app',
data: function() {
return {
msg: 'vue typical'
}
},
components: {
typical
}
}
steps: {
type: Array,
required: true
},
wrapper: {
type: String,
default: 'div'
},
loop: {
type: Number,
default: 1 // or 'Infinity'
}
Author: Turkyden
Live Demo: https://turkyden.github.io/vue-typical/
Download Link: https://github.com/Turkyden/vue-typical/archive/master.zip
Official Website: https://github.com/Turkyden/vue-typical
#vuejs #javascript #vue-js