I switch the content of the divs (fading the old content, then disappearing into the new content), and because they are slightly different from the content, at the moment of their change, there is a sharp reorganization of everything below them.
My question is, is there a way to make this movement smooth?
I suspect that almost the only way to do this is to use javascript to determine in advance what heights (in my case, I only deal with blocks where there are vertical alignment shifts) of the start and end elements, and assign these values directly. As soon as I do this, I'm sure the CSS3 transition will apply some nice animation.
Is there any way to get this without specifying explicit measurements? I seem to recall at some point when experienced items move around the page in an animated manner. This gives me hope that this can be done using only CSS.
source
share