← Back to labs
Accordion
Click to enlarge and see more examples
AS3
← Back to labs
This is a simple accordion made while flash was still widely used for this sort of thing.
It can handle as many panels as needed, and most things can be configured; from the diagonal offset to the min width of each panel.
I also implemented custom events, so you can trigger different actions when a panel opens, closes, and the accordion resets.
I’ve just used simple colours to show the effect, but you can replace these with images, movies, andything really.
I may port this as a jQuery plugin at somepoint.