🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

Textra is a simple Vue.js plugin to rotate through text with fancy effects.

Animation Text

Documentation

Textra Build Status

A Vue.js add-on to slide your text.

Installing

npm i -D vue-textra   

Then inside you project, start using it :

import Vue from 'vue' import App from './App.vue' import {Textra} from 'vue-textra'  Vue.use(Textra); new Vue({   el: '#app',   render: h => h(App) })

To use inside browser:

<script src='https://cdn.jsdelivr.net/npm/vue-textra@latest/dist/textra.min.js'></script>

Then:

Vue.use(Textra);

Usage

Inside any of your components:

 <textra :data='words' :timer="1.1" filter="flash" />

And in your instance data:

//...   data () {     return {       words: ["My text to show","palnet","fail","sample text"]     }   } //...

Another example :

 <textra :data='words' :timer="1.1" :infinite='true' filter="left-right" />

This one will loop around for ever.

Props

data

Type : Array
Description : Should be array of things you want to slide.


timer

Type : Number
Description : Defines gap between each slide as second.
Default : 1


filter

Type : String
Description : Defines type of filter you want to use when sliding.
Default : simple


infinite

Type : Boolean
Description : Defines whether your slider should keep looping or not.
Default : false

Filters

There are 9 types of filters available for now:

  • simple
  • bottom-top
  • top-bottom
  • right-left
  • left-right
  • press
  • scale
  • flash
  • flip

You May Also Like