Collapsible: keep original state class during transit

This allows Cornelis to tweak the styling based on the specific
transition that is happening.