Skip to content

liujian10/marquee-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

// cdn
<script src='https://cdn.jsdelivr.net/npm/marquee-js@1.0.3/dist/marquee.min.js'></script>
marqueeJs(dom,options);

API

props

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

options

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

About

Marquee plugin with Javascript support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published