Animating the <li> removal in jQuery
Posted
by Marco
on Stack Overflow
See other posts from Stack Overflow
or by Marco
Published on 2010-04-01T01:21:26Z
Indexed on
2010/04/01
1:23 UTC
Read the original article
Hit count: 393
Hi guys,
i'm adding and removing <li>
elements with jQuery, that are shown horizontally with the following style:
#my_ul {
list-style: none;
}
#my_ul li {
float: left;
margin: 0px 15px;
}
For example, if i add four <li>
to an <ul>
and then i decide to remove the second one, after it has been removed the other two <li>
elements on the right immediately move to the left.
What i'd like to do is to animate this behaviour, with the remaining <li>
elements that softly moves to the left.
Any tips?
Thanks
© Stack Overflow or respective owner