Add transitioning class to element during collapse