Created by: shageman
The current implementation of collapse.js adds the class in
to the expanding element as soon as the transition starts and removes it as soon as the collapse starts.
In certain situations where the style needs to be different between collapsed and expanded mode the change has to happen only after the transition is complete.
To achieve this, the attached commit adds a class transitioning
during the process of expanding/collapsing.