The "transition" is due to the fact that the H2 elements have fields and in accordance with the rules of vertical fields CSS will collapse .
Before starting the animation, you have H2 headings separated by tables. Headers have some fields above and below them, the table does not have:
+--------------------------+ | | |H2: April | | | +--------------------------+ |||||||||||||||||||||||||||| |TABLE in the middle | |||||||||||||||||||||||||||| +--------------------------+ | | |H2: May | | | +--------------------------+
Then the table is smoothly animated, leaving you with only two headers:
+--------------------------+ | | |H2: April | | | +--------------------------+ | | |H2: May | | | +--------------------------+
And all of a sudden there is no table between these headers and fields, and you will get something like this:
+--------------------------+ | | |H2: April | | | |H2: May | | | +--------------------------+
And this collapse causes a "jump".
One possible solution is to replace H2 fields with paddings:
#archive h2 { margin: 0; padding: 0.5em 0; }
Gaskets will not collapse.
source share