jquery - how to do show hide content div with crossbrowser? -
i doing content div show hide using animate present it's fixed width working want without width it's should cross browser when shrinking down have work elastic wise when div show mode.
any suggestions or modifications in code.
here solution fixed width problem:
$("#content").animate({ width: $('body').width() -100 }, { queue: false, duration: 10 }).toggle(); edit: animate hide, put animation function again in toggle:
$("#content").animate({ width: $('body').width() -100 }, { queue: false, duration: 1000 }).toggle({ width: 100 }, { queue: false, duration: 1000 });
Comments
Post a Comment