Recipe: rework collapse animation to prevent white bg flickering #49