A
A
Andrey Frolov2017-03-19 19:03:20
css
Andrey Frolov, 2017-03-19 19:03:20

Why not put a transition on all elements?

* {
  transition: .5s all;
}

What does it threaten?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Pushkarev, 2017-03-19
@AXP-dev

1. The browser will have to process all the properties of the elements.
2. Animation in js will not work well.
In general, it's best to hang transition on specific properties (color, etc.), and not specify all

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question