Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-marqueeli

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-marqueeli

Vue 2.x无缝滚动插件,支持上下左右,可以自定义内容和样式

  • 1.1.7
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

下载

yarn add vue-marqueeli 

引入

import marqueeli from 'vue-marqueeli'
import 'vue-marqueeli/vue-marqueeli.css'

Vue.use(marqueeli);

使用

<marqueeView :height="90" >
            <marqueeItem><div>滚动内容一</div></marqueeItem>
            <marqueeItem><p>滚动内容2</p></marqueeItem>
            <marqueeItem><img src="@/assets/1.png" alt=""></marqueeItem>
            <marqueeItem v-for="item in 4" :key="item"><span>滚动内容4</span></marqueeItem>
            <marqueeItem><span>滚动内容5</span></marqueeItem>
            <marqueeItem><span>滚动内容6</span></marqueeItem>
            <marqueeItem><span>滚动内容7</span></marqueeItem>
</marqueeView>

参数说明

dir: {   //无缝滚动的方向
   type: String,
   default: 'top', //'top','down','left','right',
  },

  speedtime: {  //时间间隔
   type: Number,
   default: 40,
  },

  height: {   //容器高度 //当dir是‘left’,'right'时失效
   type: Number,
   default: 60,
  },

其他说明

当dir为top或者down时如果内容高度不够是不会滚动的当dir为left或者right时如果内容的宽度不够也不会滚动

Keywords

FAQs

Package last updated on 02 Nov 2022

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc