[CSS GPU Animation] Marquee Text for vuejs
npm install vue-marquee-text-component> [CSS GPU Animation] Marquee Text for vuejs



npm install vue-marquee-text-component or yarn add vue-marquee-text-component
The most common use case is to register the component globally.
``js
// in your main.js or similar file
import Vue from 'vue'
import MarqueeText from 'vue-marquee-text-component'
Vue.component('marquee-text', MarqueeText)
`
Alternatively you can do this to register the components:
`js
// HelloWorld.vue
import MarqueeText from 'vue-marquee-text-component'
export default {
name: 'HelloWorld',
components: {
MarqueeText
}
}
`
On your page you can now use html like this:
`html
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna.
Short text =(
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna.
`
|Prop|Type|Default|Description
|-|-|-|-|
|duration|Number|15|Animation Duration
|repeat|Number|2|Number of repeat the Slot (It's important for to short content)
|paused|Boolean|false|The property specifies whether the animation is running or paused
|reverse|Boolean|false|Set animation-direction to reverse
see more
`html
{{ currentTrack.title }}
`Build Setup
` bash
yarn install
yarn run serve
yarn run build
yarn run lint
``