Lightweight Animated Typing Component – vue-typical

Description:

A dead simple and super tiny Vue.js component for animated typing in Vue.js app.

How to use it:

1. Install and import.

import typical from 'vue-typical'

2. In your app template:

<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>

3. Register the component.

export default {
  name: 'app',
  data: function() {
    return {
      msg: 'vue typical'
    }
  },
  components: {
    typical
  }
}

4. Possible props.

steps: {
  type: Array,
  required: true
},
wrapper: {
  type: String,
  default: 'div'
},
loop: {
  type: Number,
  default: 1 // or 'Infinity'
}

Preview:

See the Pen
vue-typical
by turkyden (@turkyden)
on CodePen.

Download Details:

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

Install & Download:

# NPM
$ npm install vue-typical --save

You Might Be Interested In:

Add Comment