A
A
Andrew2020-05-13 15:14:31
Vue.js
Andrew, 2020-05-13 15:14:31

Animations of transitions between routes and position: absolute?

Hey!
I make transition animations for the application. The problem is that in order for nothing to go anywhere, you need to assign router-view position: absolute and wrap it with position: relative and add overflow: hidden . Otherwise, there will be various jerks, the appearance of scrollbars, etc.

But due to the use of overflow: hidden , the following problem arises - it does not affect the parent block, therefore, in order for anything to be displayed, the parent block (with position: relative) needs to hard-set the height. But pages obviously can be of different heights. Until I figured out how to overcome this problem.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question