Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/apollopy/carousel
https://github.com/apollopy/carousel
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/apollopy/carousel
- Owner: apollopy
- Created: 2013-07-16T09:21:53.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-07-23T04:39:57.000Z (over 11 years ago)
- Last Synced: 2024-10-14T14:10:36.624Z (3 months ago)
- Language: CoffeeScript
- Size: 101 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Carousel
A carousel plugin for jQuery.
## Development
$ sudo npm install -g coffee-script
$ sudo npm install -g uglify-js## Example
### add JavaScript
```html
```
### basic HTML
```html
- ...
- ...
- ...
- ...
```### add CSS
```css
.js-carousel-box {
position: relative;
overflow: hidden;
/* adjust these to your needs */
width: 740px;
height: 260px;
}
.js-carousel-inner {
position: absolute;
}
.js-carousel-inner .item {
display: none;
position: absolute;
}
.js-carousel-inner .active {
display: block;
}
```### setup Carousel
```html
$('.js-carousel-box').carousel(/*options*/);
```