Overview

This example illustrates how to use the Rico.Accordion behavior to transform a set of divs into a first class accordion component.

The Rico.Accordion behavior makes use of the Effect.AccordionSize which is an effect that simultaneously grows the height of one element while shrinking the height of another. The Rico.Accordion behavior adds the necessary event handlers on the respective divs to handle the visual aspects of expanding, collapsing and hovering.
HTML Code
Rico Code
Important Note