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

https://github.com/steve228uk/candyaccordion

A simple lightweight accordion for jQuery
https://github.com/steve228uk/candyaccordion

Last synced: 16 days ago
JSON representation

A simple lightweight accordion for jQuery

Awesome Lists containing this project

README

        

# CandyAccordion
A simple, lightweight accordion utilising the jQuery Library

## Includes
Include the following in your head along with the jQuery Library (if you don't have it already).

``
``

## The Call
Attach the Accordion to your markup

$(document).ready(function() {
$('#accordion').candyaccordion();
});

The following defaults can be overwritten

$(document).ready(function() {
$('#accordion').candyaccordion({
speed: 250 // Animation speed in MS
titleClass: 'candytitle' // Class used on the title
textClass: 'candytext' // Class uesed for the text
});
});

## The Markup
CandyAccordion uses unordered lists in the following way to utilise it



  • Accordion Title

    Accordion text


Have fun :)