Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bhaumikpatel/accordion

Create a cool and simple jQuery accordion.
https://github.com/bhaumikpatel/accordion

Last synced: about 1 month ago
JSON representation

Create a cool and simple jQuery accordion.

Awesome Lists containing this project

README

        

Accordion
=====================

Create a cool and simple jquery accordion. Lightweight jquery plugin minify 2kb or uncompressed 3kb.
Accordion
----------
Demo
---------
- [jsFiddle](http://jsfiddle.net/lesson8/96g4h/show/)

Basic Usage
---------

To add this to your website, simply include the latest jQuery library together with `accordion.js`, `accordion.css` into your document's `` and call the function as follows:
```


Section 0




  • Sub Category

  • Sub Category

  • Sub Category




Section 1



Lorem Ipsum is simply dummy text.



```
> **NOTE:** Description list `

` and `
` is required for accordion feature defines a term/name in a description list.

#### Call Accordion

```
$('.accordion').accordion({
open: false, // First List Open, Default Value: false
autoStart: false, // Auto Start, Default Value: false
onHoverActive: false, // On Hover Active, Default Value: false
slideInterval: 3000, // Expression at specified intervals (in milliseconds) Default Value: 3000
duration: 'slow', // The default duration is slow. The strings 'fast' and 'slow'.
easing: 'swing', // An easing function specifies the speed at which the animation progresses.
complete: function () { console.log('Complete Event'); }
//If supplied, the complete callback function is fired once the accordion is complete.
});

```