E
E
eugenedrvnk2019-09-11 16:25:01
css
eugenedrvnk, 2019-09-11 16:25:01

How to animate absolutely positioned elements?

There is the following code example:

When opening a block, a div that is within the parent's size animates smoothly. The element that goes beyond it - waits for the end of the animation and then instantly appears. Is it possible to somehow fix this and make it appear smooth?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Afanasy Zakharov, 2019-09-11
@eugenedrvnk

The library (or part of vuejs, I don't know for sure) velocity, at the moment of animation, puts the overflow: hidden property on the element with the item class, and hides the elements outside the block.
If this is removed, it will not be possible to animate the text, its hiding cannot be made smooth without overflow: hidden.
this moment can be simply reversed in a way that is more comfortable so that the stick does not fall out without left: -20px:
Here is a slightly reversed (and working) thing - https://codepen.io/JimiMorrison/pen/jONxmaN

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question