animation for revealing a nested table w/ javaScript using .slideToggle -


new javascript (and front end in general) here, forgive mistakes.

in jsfiddle, have nested table want reveal on clicking triangle. want give transition little animation rather popping open. here code below.

    $(document).ready(function(){     $(".second").hide();     $("a").click(function(e)         {         e && e.preventdefault();         var tr = $(e.currenttarget).closest('td').find(".triangle")         .toggleclass("collapse")         .toggleclass("expand");         var tableid = $(e.currenttarget).attr('href');         $(tableid).slidetoggle("slow");       });     }); 

any assistance on how give reveal animation appreciated.


Comments

Popular posts from this blog

multithreading - Exception in Application constructor -

React Native allow user to reorder elements in a scrollview list -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -