M
M
medbrat132020-06-18 15:11:36
css
medbrat13, 2020-06-18 15:11:36

Is it possible to somehow animate the movement of a dom element when its neighbor is removed?

That's actually the question.
I am manipulating DOM elements through javascript. I delete one element, its neighbor on the right takes its place. How can I animate this movement without connecting third-party libraries? By animation, I mean just a smooth movement to a new place.

Tried the transition property, doesn't work because no properties change in css.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Markov, 2020-06-18
@medbrat13

You can shrink the element that is being removed by 0px , then delete it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question