javascript - Make fadeToggle more smooth when collapsing -
when click toggle toggle
anchor in jsfiddle: http://jsfiddle.net/kaahm/ when animation complete, collapsing of remaining <li>
jarring , abrupt.
i wondering if there quick way make smooth like: http://razorjack.net/quicksand/?
how remaining items slide new spots rather collapse.
don't think have keep fadetoggle
fade , disappear visibly, physically.
i've updated fiddle - http://jsfiddle.net/kaahm/1/
basic idea behind, apply width parent li
elements, fade out anchors , animate width of parent li elements down zero, , remove elements.
that way, 1 element stays put smoothly placed near left edge of parent container.
Comments
Post a Comment