# af-carousel
**Repository Path**: mirrors_intel/af-carousel
## Basic Information
- **Project Name**: af-carousel
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-08-08
- **Last Updated**: 2026-01-17
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
#af.carousel.js
# af.carousel
To use af.carousel you must do the following
1. Create a div with the content inside you want to page between. You must set the height and width of this div, along with overflow:hidden
``` html
```
2. if you want the dots to show up for paging, create the div
``` html
```
3. Call the javascript function to create the carousel
``` js
var carousel = $("#my_div").carousel();
```
There are additional configuration options that are passed in as an object parameter
``` js
var options={
vertical:false, // page up/down
horizontal:true, // page left/right
pagingDiv:null, // div to hold the dots for paging
pagingCssName:"carousel_paging", //classname for the paging dots
pagingCssNameSelected: "carousel_paging_selected", //classname for the selected page dots
wrap:true //Creates a continuous carousel
}
var carousel = $("#my_div").carousel(options);
```
There are two functions for adding/removing items
``` js
carousel.addItem(element);
carousel.removeItem(); //remove all items
carousel.removeItem(index); //remove an item by index
```