Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
A jquery plugin for infinite scroll
npm install --save-dev limarquee
├── 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 # 外部引用插件时的入口
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>
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 // 反向,即默认不滚动,鼠 标悬停滚动
})
npm install
npm run server
And then, open with localhost:3333/index.html
More knowledge from here
FAQs
The npm package limarquee receives a total of 1 weekly downloads. As such, limarquee popularity was classified as not popular.
We found that limarquee demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.