Inconsistent interaction speed when div heights are different

Iā€™m trying to create this interaction where you reveal a different paragraph when clicked on a button.
But it seems like the interaction speed can vary even if the duration is the same for both elements because the paragraphs can be either longer or shorter. In the screen recordings below, you can see what I want to do.

Inconsistent speed when paragraph wrappers have different heights :point_down:

Consistent speed when paragraph wrappers have the same height :point_down:

Here is my public share link:

It has been solved. If anyone wants to know how I solved it. Feel free to leave a comment

Hi @Teddy_Be feel free to share solution without asking as it can be beneficial to anyone who will come over this problem in future. :wink:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.