Javascript

【Javascript】CSS3リストスクロールエフェクトstroll.js

April 29, 2018
stroll

stroll.jsはCSS3リストスクロールエフェクト

Usage

// 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' ) );
// 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 } );
// Same target options as stroll.bind
stroll.unbind( selector/element/array );

MIT