https://github.com/netsells/nsbanner
Super simple slider / fader for banners. See http://www.gnu.org/licenses/gpl.html for license (GPL).
https://github.com/netsells/nsbanner
Last synced: about 1 month ago
JSON representation
Super simple slider / fader for banners. See http://www.gnu.org/licenses/gpl.html for license (GPL).
- Host: GitHub
- URL: https://github.com/netsells/nsbanner
- Owner: netsells
- Created: 2011-01-19T11:51:24.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-02-02T19:13:25.000Z (over 14 years ago)
- Last Synced: 2025-02-02T18:52:00.607Z (3 months ago)
- Language: JavaScript
- Homepage: http://www.netsells.co.uk
- Size: 93.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Licensed under the GPL
Pretty much the same as any other jQuery plugin. Just init on a ul of your choice
$('ul#banner').nsBanner();
The width of the banner will be that of the widest li.
I'd recommend wrapping your content in div's and applying styles to the div rather than the li.Options are,
transition : 'fade' and 'slide'
pause : number in milliseconds
speed : number in millisecondsExample
$('ul#banner').nsBanner({
transition: 'fade',
pause: 10000, // ten seconds
speed: 500, // 0.5 seconds
});