Answer the question
In order to leave comments, you need to log in
How to implement animation in CSS and JS navigation with dynamic height?
Can anyone suggest? how to implement such a navigation option https://www.tretyakovgallery.ru/ so that the submenu blocks are separate and smoothly adjust to the internal content. Made animation by min-height and position. But the block is only animated when it appears, when it is changed, it is simply updated with a new one. I think to try to implement through animation and intervals on js. Maybe someone already has a ready-made snippet or a similar solution?
Answer the question
In order to leave comments, you need to log in
made a decision, just rotated the block horizontally through flex, and added order when changing the block, opasity and visible, now without jumps, I think using this solution, you can try to do without js.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question