JsFiddle DEMO
I have the following html:
<ul>
<li>
<div></div>
Testing
</li>
<li>
<ul>
<li></li>
<li>
<div></div>
Testing
</li>
<li></li>
</ul>
</li>
</ul>
And I’m calling this js on it:
$('li').hide(2000);
Now I have a border around the div’s What I want is for the borders to fade too, but as you can see the borders are first disappearing completely and then the rest of the elements slowly fade.
Is there anything I can do so that the borders fade like the rest of the element?
Works if you try to hide the ‘ul’ instead, and has the same effect on the DOM visibility.
http://jsfiddle.net/EhzwV/1/