vue-textra

Vue js text sliding plugin
4,009 29
Install
npm install vue-textra
Latest Version:1.3.0
Vue:2
License:MIT
Last Updated:Dec 7, 2022
Links: GitHub  ·  npm
Maintainer: hosein2398

Textra Build Status

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

Installing

npm i -D vue-textra

Then inside your 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="4" filter="flash" />

And in your instance data:

//...
  data () {
    return {
      words: ["My text to show", "Great news here!", "Vue is great", "Sample Text"]
    }
  }
//...

Another example :

 <textra :data='words' :timer="3.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 : 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

Related Packages

vue-concise-slider

vue-slider,A simple sliding component,has easy configuration,support self-adapti...

125,004
vue-swipe

A touch slider for vue.js.

22,780 909
vue-monoplasty-slide-verify

vue slide verify

21,200 761
@jambonn/vue-carousel

A flexible, responsive, touch-friendly carousel for Vue.js

902
vue-carousel

A flexible, responsive, touch-friendly carousel for Vue.js

1,675,195 1,696

Version History

Version Released Vue License
1.3.0 ^2.6.10 MIT
1.2.0 ^2.6.10 MIT
1.1.0 ^2.5.17 MIT
1.0.2 ^2.5.11 MIT
1.0.1 ^2.5.11 MIT