html - Animating divs using jQuery -


i want animate series of divs same dimentions , i'm using jquery cancel css top marging on load simulate divs moving top have fallowing jquery:

$(function(){     $('#some_div').animate({'margin-top': '0px'}, 1000); });     </script> 

this seems work top div. there way create sort of loop jquery simulates effect on divs same name.

your jquery selector points item id. definition id should ever refer 1 element. change class selector animate many items , give them same class.


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 -