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&hellip;</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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -