Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mundosica/prototypejscarousel
I simple Carousel effect with prototype
https://github.com/mundosica/prototypejscarousel
Last synced: 29 days ago
JSON representation
I simple Carousel effect with prototype
- Host: GitHub
- URL: https://github.com/mundosica/prototypejscarousel
- Owner: mundoSICA
- Created: 2011-10-14T14:39:44.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-06-01T05:34:37.000Z (over 12 years ago)
- Last Synced: 2024-03-26T03:30:16.142Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 219 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PrototypeJS Carousel
========================================================================================This script makes it easy to create a sliding carousel component.
This script uses the Prototype javascript framework and the effects.js library from Scriptaculous. You must include Prototype version 1.7+ in your pages before including this script. This library is known to work in recent versions of IE 6/7, FireFox, Opera and Safari.
Get source code
------------------------------------------------------------------------------------------Download as .tar.gz
Download as .zipOptions
------------------------------------------------------------------------------------------You can create multiple carousels on one page.
var some_carousel = new Carousel('some-carousel');
var some_carousel2 = new Carousel('some-carousel2');
var other_carousel = new Carousel('other-carousel');
You can determine which section will be scrolled to initially by using the `initialSection` option:var my_carousel = new Carousel('my-carousel', {initialSection: 'section4'});
You can make the Carousel periodically update by using the `scrollDuration`(default 1.0seconds) and `sectionDuration`(default 3.0seconds) options:
var my_carousel = new Carousel('my-carousel', {scrollDuration: 0.5, sectionDuration: 4});