1.0.3 • Published 7 years ago

marquee-js v1.0.3

Weekly downloads
13
License
MIT
Repository
github
Last release
7 years ago

marquee-js

Marquee plugin with Javascript support

Install

marquee-js

Development

# install
npm install --save marquee-js

# run
gulp server

# build
gulp build

Example

local: http://localhost:3001/

online: http://mapleliu.com/marquee-js/

Usage

用于处理文字,超长自动循环滚动;

<script src='marquee.js'></script>
marqueeJs(dom,options);

API

props

参数说明类型默认值单位
dom需要处理的dom元素HTMLElement--
options配置项Object--

options

参数说明类型默认值单位
speed更新速度Number-ms(毫秒)/px(象素)
width自定义元素宽度Number元素自身宽度px
height自定义元素高度Number元素自身高度px
delay延时时长Number0ms