Bug resolved to some extent.

Now, since there are two line breaks in the padding span.

This height is more than 50px, which is the height after which shrink is triggered.

But the padding span can't be hidden after all the transitions are complete.