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

aring-vue-marquee

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aring-vue-marquee

AringVueMarquee is a small component similar to the effect of LED rolling light.

  • 2.0.8
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

🌈Vue跑马灯

简体中文 | English

🎈在线演示

✨介绍

AringVueMarquee是一个类似LED滚动灯效果的小组件,通过CSS3 Animation + Transform 方案来实现文本滚动以适应移动端,并减轻间隔器方案造成的性能损耗。

您可以自定义 颜色/尺寸/点击事件 等来满足您的业务需求。

📦安装

npm install aring-vue-marquee -S

🔨使用

全局引用

main.js

import VueMarquee from 'aring-vue-marquee';
Vue.use(VueMarquee);

组件内引用

<template>
  <vue-marquee>
    <span>此处定义滚动内容</span>
  </vue-marquee>
</template>
<script>
  import VueMarquee from 'aring-vue-marquee';
  export default {
    components: { VueMarquee }
  };
</script>

🎨API

Attributes

参数类型可选值默认值说明
speedNumber——10滚动速度,默认 10,大于 10 则更快,小于 10 则更慢
directionStringup/right/down/leftleft滚动方向
delayTimeNumber——500滚动间隔时间,单位ms
colorString——#333文本颜色
cursorString——text鼠标放置文本时的光标
sizeStringsmall/large——尺寸
mouseoverBlooean——true是否允许鼠标移入暂停滚动

Event

事件名称说明回调参数
click可在@click中自定义点击文本的事件——

Methods

方法说明
stopRoll停止滚动
continueRoll继续滚动
reset重置

Slot

插槽名说明
(default)插入滚动内容
icon前置小图标

📜其它版本

vesion@1.2.1

FAQs

Package last updated on 26 Aug 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