A Vue component to Marquee. Just used CSS3 animation.
npm i vue-text-marquee
import Vue from 'vue';
import VTextMarquee from 'vue-text-marquee';
Vue.use(VMarquee);
.vue
fileimport { VTextMarquee } from 'vue-text-marquee';
export default {
component: {
VTextMarquee: VTextMarquee
}
}
speed
{Number}
, scrolling speed, default 50
content
{String}
, scrolling content, you can also use default slot instead.animate
{Boolean}
, control the animation is running or pause, default true
.(Used css3’s animation-play-state
)