stroll.js

CSS3 list scroll effects

  • Owner: hakimel/stroll.js
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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

Main metrics

Overview
Name With Ownerhakimel/stroll.js
Primary LanguageHTML
Program languageCSS (Language Count: 3)
Platform
License:MIT License
所有者活动
Created At2012-04-14 22:37:23
Pushed At2020-07-24 09:23:03
Last Commit At2017-11-29 10:35:10
Release Count2
Last Release Namev1.0 (Posted on )
First Release Namev0.0 (Posted on )
用户参与
Stargazers Count4.4k
Watchers Count186
Fork Count721
Commits Count99
Has Issues Enabled
Issues Count30
Issue Open Count13
Pull Requests Count9
Pull Requests Open Count1
Pull Requests Close Count5
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private