unobstrusive transition between A and B DOM elements through a third one C

Principle, for example transition A -> B:

  1. make a clone of A
  2. hide A and B
  3. apply B styles to the clone (with transition)
  4. once transition end, remove clone and reveal A and B back