I have two divs, one above the other. When the first animates, which it does, it slides below the other. How can I make sure that when the first animates it pushes the second downwards without having to animate both DIVs.
http://jsfiddle.net/pC6fC/1/ I have two divs, one above the other. When the first animates, which
Share
You could use margin, instead of top. As both of your divs are relatively positioned, if you set top value (i.e. 30%), it won’t push your second div.
Example with margin-top: http://jsfiddle.net/pC6fC/5/