stroll.js

CSS3 list scroll effects

  • 所有者: hakimel/stroll.js
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

stroll.js – because it scrolls, and trolls.

A collection of CSS list scroll effects. Works in browsers with support for CSS 3D transforms including a special touch-enabled mode for iOS & Android 4.x.

Curious about how this looks in action? Check out the demo page.

Usage

The style of scroll effect is determined via the class that is set on the list. Once the class is set, stroll.js needs to be told to monitor that list via the bind method:

// Bind via selectors
stroll.bind( '#main ul' );

// Bind via element reference
stroll.bind( document.getElementById( 'some-list' ) );

// Bind via array of elements / jQuery object
stroll.bind( $( '#main .some-list' ) );

You can provide an additional parameter with more options:

// Makes stroll.js monitor changes to the DOM (like adding or resizing items). 
// This is taxing on performance, so use scarcely. Defaults to false.
stroll.bind( '#main ul', { live: true } );

To disable the effect on an already-bound list, you can use stroll.unbind():

// Same target options as stroll.bind
stroll.unbind( selector/element/array );

History

1.2 (master/beta)

  • Mobile support (iOS/Android 4+)
  • New effects

1.1

  • Optimizations
  • New API
  • New effects

1.0

  • Initial release

Contributors

License

MIT licensed

Copyright (C) 2017 Hakim El Hattab, http://hakim.se

主要指标

概览
名称与所有者hakimel/stroll.js
主编程语言HTML
编程语言CSS (语言数: 3)
平台
许可证MIT License
所有者活动
创建于2012-04-14 22:37:23
推送于2020-07-24 09:23:03
最后一次提交2017-11-29 10:35:10
发布数2
最新版本名称v1.0 (发布于 )
第一版名称v0.0 (发布于 )
用户参与
星数4.4k
关注者数186
派生数721
提交数99
已启用问题?
问题数30
打开的问题数13
拉请求数9
打开的拉请求数1
关闭的拉请求数5
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?