Edit The Code:
See Result »
Try it Yourself - ©
w3ii.com
Simple Collapsible
Simple collapsible
The .collapsing class is added when the transition starts, and removed when it is finished. In this example, the collapsible content gets a yellow background for those seconds it takes to show the content. The background color is removed when the transition has ended.