Answer the question
In order to leave comments, you need to log in
How to implement the animation described below?
It is necessary that the elements that are inside the block are hidden when the size of this block is reduced.
cuberto.com - on this site, when hovering over a burger, the text appears inside the menu borders
Solution - overflow: hidden
Answer the question
In order to leave comments, you need to log in
Depends on what is causing the resizing. If this is a breakpoint in media queries, write the appropriate animation rules for the necessary elements, if this is caused by the work of scripts - it depends on the logic, you can, for example, check the dimensions, and when the desired value is reached, add some class to the element to which to attach the necessary animations .
If this is not enough, describe the situation in more detail.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question