Hello, I recently made some updates to the code by adding 2 divs of different sizes. I am trying to achieve a switching animation using CSS floats for these divs.
If you'd like to take a look at the current code, please visit - http://jsfiddle.net/jz5VW/
jQuery(function () {
jQuery('#switch').click(function () {
jQuery('#one').animate({
left: jQuery("#two").offset().left - jQuery("#featured-top").offset().left
});
jQuery('#two').animate({
right: jQuery("#two").offset().left - jQuery("#featured-top").offset().left
});
});
});
I'm wondering if there is a way for them to align to the right and left of the wrapper?
Thank you in advance!