Socket
Socket
Sign inDemoInstall

@marsong11/vue-marquee

Package Overview
Dependencies
11
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @marsong11/vue-marquee

A Vue component to marquee


Version published
Weekly downloads
1
decreased by-87.5%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

vue-marquee

A Vue component to marquee,horizontally scrolling when the text is too long

滚动组件,支持文本过长时横向滚动

Screenshot

Screenshot

Install

npm install @marsong11/vue-marquee

# or
yarn add @marsong11/vue-marquee

Usage

<template>
  <div class="container">
    <marquee :data="list" />
  </div>
</template>

<script>
  import Marquee from '@marsong11/vue-marquee';

  export default {
    components: {
      Marquee
    },
    ,
    data() {
      return {
        list: [
          'data1 some text.',
          'data2 balabalabalabala.',
          'data3 long long long long long long long long long long long text.',
          'data4 hahaha.'
        ]
      };
    }
  };
</script>

Options

NameTypeDefaultDescription
dataArray[]content
durationNumber300duration of transition between items (in ms)
delayNumber2500delay between transitions (in ms).
scrollSpeedNumber60the speed of the scrolling (keep number low)
pauseOnHoverBooleanfalsepause on hover

Keywords

FAQs

Last updated on 07 Aug 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc