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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -