More details and download here
If you find any bugs, please file a ticket on Github and I'll fix it as soon as possible. Thanks!
In version 1.1 (released 21/03/2011), a pause on hover function was added to the plugin.
1. Include jQuery, the liteAccordion CSS and the liteAccordion JavaScript files in your page:
<head> <link rel="stylesheet" href="liteAccordion.css"> </head> <body> ... <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> <script src="liteaccordion.jquery.js"></script> </body>
2. Insert the basic liteAccordion markup into your page:
Thomas Schommler
Tiere
Natur-Fotografie
Konzertfotografie
Freizeit & Sport
People-Fotografie
Sammelsurium
3. Call the plugin
<script> $('#yourdiv').liteAccordion(); </script>
This is a demonstration of the default implementation above, but with some text content added to the slides.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Link somewhere
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi.
Link somewhere
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Link somewhere
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi.
Link somewhere
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Link somewhere
These are the default settings for the liteAccordion plugin:
containerWidth : 1060, // width of accordion (px) containerHeight : 320, // height of accordion (px) headerWidth : 48, // width of tabs (px) firstSlide : 1, // number of the first active slide (integer) onActivate : function() {}, // callback function triggered on tab click/mouseover (function) slideSpeed : 800, // speed of slide animation (time/ms) slideCallback : function() {}, // callback function triggered after slide animation is complete (function) autoPlay : false, // automatically scroll through the slides, if true with pause on user click (boolean) pauseOnHover : false, // *NEW in 1.1* - pause slides on hover cycleSpeed : 6000, // time between slide activation (time/ms) theme : 'basic', // which theme to use ('basic', 'light'*, 'dark', or 'stitch'*) rounded : false, // whether to use rounded corners or not** (boolean) enumerateSlides : false // show slide number in tab
(* coming soon, **doesn't work in IE)
Simply pass options into the liteAccordion function with an object literal, for example, below is the code for the accordion at the top of the page.
$('#one').liteAccordion({ onActivate : function() { this.find('figcaption').fadeOut(); }, slideCallback : function() { this.find('figcaption').fadeIn(); }, autoPlay : true, pauseOnHover : true, theme : 'dark', rounded : true, enumerateSlides : true }).find('figcaption:first').show();
Note: the context for the two callback functions is the (jQuery wrapped) slide div (adjacent to the tab trigger).
$('#yourdiv').liteAccordion({ theme : 'dark', containerWidth : 600, containerHeight : 200, slideSpeed : 600, firstSlide : 2 });
The liteAccordion plugin is free for personal and commercial use, providing that the copyright notices are left intact. You may freely include this jQuery plugin in websites, web applications, templates, themes, and other materials intended for sale and/or distribution. You are not permitted to offer this plugin for distribution and/or resale 'as is' without prior consent.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The 'dark' theme was inspired by Orman Clark. Thanks Orman! :)
More script and css style : www.htmldrive.net