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
- Host: GitHub
- URL: https://github.com/steve228uk/candyaccordion
- Owner: steve228uk
- Created: 2012-03-28T21:20:43.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-03-31T23:12:29.000Z (about 13 years ago)
- Last Synced: 2025-03-27T00:21:12.521Z (about 1 month ago)
- Language: JavaScript
- Size: 106 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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 :)