A Vue.js add-on to slide your text. demo
Installing
npm i -D vue-textra
Then inside your project, start using it:
Vue; el: '#app'
To use inside browser:
Then:
Vue;
Usage
Inside any of your components:
And in your instance data:
//... { return words: "My text to show" "Great news here!" "Vue is great" "Sample Text" }//...
Another example :
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 : 2
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