Reputation: 2337
chaining appendTo to the animate is not working? Meaning the left margin never moves over to margin 0 from margin 600px?
$(data).filter('.test1Div').appendTo("#tes1Section").animate({"left": + slideLeft},"slow");
I can see the data get inserted into the #test1Section because I manually move the test1Section div over..
Upvotes: 0
Views: 154
Reputation: 318182
For some reason you need to append the element after the animation is started, like so:
$(data).filter('.test1Div').animate({left: slideLeft},"slow").appendTo("#tes1Section");
Pay notice to how the animate function is written, and do as landons said, make sure you have your elements names correct.
Edit: Just noticed that you are writing "left margin", but you do know that you are currently animating the css "left" property, and not the css "marginLeft" property?
Upvotes: 1
Reputation: 9547
Looks like you're missing a "t" in appendTo('#tes*t*1Section'). Beyond that, make sure your test1Div has a position of relative or absolute.
Upvotes: 0