📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP

marquee-vue

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marquee-vue

A Vue Component to marquee

1.0.7
latest
Version published
Weekly downloads
2
-89.47%
Maintainers
1
Weekly downloads
 
Created

marquee-vue

A Vue Component to marquee

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

Usage

Install it via npm:

  • npm install --save marquee-vue

Example

note: the location of marquee-vue: "node_modules/marquee-vue/dist/marquee-vue.min.css "

<template>
  <div id="app">
    <div class="marquee-wrap" style="width: 80px;"><vue-marquee content="aaaaaaaaaaa" class="two"  :showtwo="false"></vue-marquee></div>
    <div class="marquee-wrap" style="width: 80px;"><vue-marquee content="bbbbbbbbbbb" class="two"  :showtwo="false"></vue-marquee></div>
    <div class="marquee-wrap" style="width: 100px;"><vue-marquee content="c" class="two"  :showtwo="false"></vue-marquee></div>
    <router-view></router-view>
  </div>
</template>

<script>

import MarqueeVue from 'marquee-vue';
import '../node_modules/marquee-vue/dist/marquee-vue.min.css'
export default {
  name: 'app',
  components:{
      "vue-marquee": MarqueeVue
    },
}
</script>

Props

content the text display in marquee

  • type: String
  • default: ""

speed the speed of scroll

  • default: 'middle'
  • type: String

showtwo

  • default: true
  • type: bool

FAQs

Package last updated on 01 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts