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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?