Use jquery show() and animate() together?
<p>I have an issue getting jquery animate to fire after calling show or fadeIn on a hidden absolutely positioned div (display = none).  The fadeIn/Show works fine, but the animate does nothing - and the logic function definitely evaluates to true after testing.  I'm using IE9.  Am I missing something??  Thanks.</p>

<pre><code>function checkscroll(x) {

    $("#" + x).fadeIn(100);
    var t = $(window).height();
    var m = $("#" + x).offset();
    var p = m.top;
    var x = $("#" + x).height();

    if ((p + x) &gt; t) {
        $("#" + x).animate({ marginBottom: "20px"}, "fast");

    }
}
</code></pre>
