Horizontal Accordion using the Tabs
HTML Coding
Our HTML setup is similar to the basic accordion setup except that the "headers" are now images:
<!-- accordion root --><!-- 1st header and pane -->.. pane content ..<!-- 2nd header and pane -->.. pane content ..<!-- 3rd header and pane -->.. pane content ..
JavaScript coding
The tabs configuration option defines what elements are used as "accordion headers" and we use the built-in sliding effect called "horizontal" that is suitable for horizontal accordions:
$("#accordion").tabs("#accordion div", { tabs: 'img', effect: 'horizontal' });
You might also like
Tags
accordion accordion menu animation navigation animation navigation menu carousel checkbox inputs css3 css3 menu css3 navigation date picker dialog drag drop drop down menu drop down navigation menu elastic navigation form form validation gallery glide navigation horizontal navigation menu hover effect image gallery image hover image lightbox image scroller image slideshow multi-level navigation menus rating select dependent select list slide image slider menu stylish form table tabs text effect text scroller tooltips tree menu vertical navigation menu