javascript - Alternative to jQuery's slideDown() and slideUp() not affecting the display property -
i've been trying use slidedown() effect website i'm working on, i'm having difficulty getting effect want. here's sample showing want accomplish.
<div> blahblahblahblah <span id="span_more" style="display:none"> blahblahblah </span> <a class="link_more" id="more">more…</a></div> </div>
basically, when "more..." clicked, want text that's hidden appear using sliding effect while staying inline end of visible text. doesn't seem possible slidedown() because changing display block.
thank much.
unfortunately, impossible. jquery's animation relies upon element having height , width. inline elements not have these dimensions set or settable, animations (whether using animate
or slideup
) must make them block-level elements.
fadein
work, , may useful alternative.
Comments
Post a Comment