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

limarquee

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

limarquee

无缝滚动插件

  • 1.0.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-92.86%
Maintainers
1
Weekly downloads
 
Created
Source

Limarquee

A jquery plugin for infinite scroll

Install

npm install --save-dev limarquee

Structure

├── Readme.md                   # help
├── webpack.config.js           # webpack.config.js配置
├── test                        # 测试案例
│   ├── index.css               # 测试案例样式表
│   ├── index.html              # 测试案例静态页面
│   └── index.js                # 测试案例入口
├── lib                         # 插件核心代码
│   ├── style.css               # 插件内置样式表
│   └── index.js                # 测试案例入口
├── package.json
├── .babelrc
└── index.js                    # 外部引用插件时的入口

Usage

Infinite scroll work on a container element with its child of ul, and then ul contain children of li

 <div class="container">
   <ul>
     <li>信息内容一</li>
     <li>信息内容二</li>
   </ul>
 </div>

Options

import Limarquee from 'limarquee'
const limarquee = new Limarquee('.container')
limarquee.render({
  direction: left	// 滚动方向,可选 left / right / up / down
  loop:	-1	// 循环次数,-1 为无限循环
  scrolldelay:	0	// 每次重复之前的延迟
  scrollamount:	50	// 滚动速度,越大越快
  circular:	true	// 无缝滚动,如果为 false, 则和 marquee 效果一样
  drag: true	// 鼠标可拖动
  runshort:	true	// 内容不足是否滚动
  hoverstop: true	// 鼠标悬停暂停
  xml: false	// 加载 xml 文件
  inverthover: false	// 反向,即默认不滚动,鼠 标悬停滚动
})

Constribution to Limarquee

More knowledge from here

FAQs

Package last updated on 12 Dec 2017

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