插件 jQuery.simplyscroll 中文API文档

🌙
手机阅读
本文目录结构

插件 jQuery.simplyscroll 中文API文档 https://github.com/logicbox/jquery-simplyscroll jQuery simplyScroll 2

Created by Will Kelly @logicbox

simplyScroll is a jQuery plugin that can animate (scroll) a set of elements either automatically or manually, horizontally or vertically, forwards or backwards.

Features

  • Supports scrolling both horizontally and vertically both forwards and backwards
  • Uses DOM ScrollTop/ScrollLeft only
  • RTL support, normalises browser RTL scroll implementations
  • Supports looped scrolling (infinite effect)
  • Fully customisable via CSS & HTML
  • jQuery 1.2.6 and higher
  • Works on all modern browsers

View plugin site for download links, examples and more info

NPM Installation

yarn add jquery-simplyscroll or npm install jquery-simplyscroll --save

Basic Usage (CommonJS)

var $ = require('jquery');
require('jquery-simplyscroll');

$("#scroller").simplyScroll({
  speed: 1
});

Version History

  • 2.1.1 16/07/18 - Code tidy-up & doc changes/fixes
  • 2.1.0 15/07/18 - NPM support, install & build process + requestAnimationFrame fix
  • 2.0.6 23/06/18 - Added initialOffset & replaced setInterval with requestAnimationFrame
  • 2.0.5 20/05/12 - Bounce mode fixed. Touch scroll works as expected, disabled when links are present
  • 2.0.4 24/02/12 - Fixed a bug in manual loop mode
  • 2.0.3 11/02/12 - Simplified touch detection to counter a Chrome 17 false positive
  • 2.0.2 09/02/12 - Scroll button bug when using mulitple scrollers
  • 2.0.1 01/02/12 - Fixed touch support
  • 2.0.0 31/01/12 - Initial release

Contributors

Thanks to all who over the years have used, given feedback and contributed to this plugin. Including recently:

Paloaltowil (https://github.com/paloaltowil), Zevero (https://github.com/zevero), Bre7 (https://github.com/bre7) & Jnhasty (https://github.com/jnhasty/)

AXIHE / 精选资源

浏览全部教程

面试题

学习网站

前端培训
自己甄别

前端书籍

关于朱安邦

我叫 朱安邦,阿西河的站长,在杭州。

以前是一名平面设计师,后来开始接接触前端开发,主要研究前端技术中的JS方向。

业余时间我喜欢分享和交流自己的技术,欢迎大家关注我的 Bilibili

关注我: Github / 知乎

于2021年离开前端领域,目前重心放在研究区块链上面了

我叫朱安邦,阿西河的站长

目前在杭州从事区块链周边的开发工作,机械专业,以前从事平面设计工作。

2014年底脱产在老家自学6个月的前端技术,自学期间几乎从未出过家门,最终找到了满意的前端工作。更多>

于2021年离开前端领域,目前从事区块链方面工作了