Hey, I know a little bit of jQuery now, but I'm still a bit confused with animations (especially when I have to add them to working script).
I have for example:
if (i = 1) {
i = i +1
$("#div p").css("left", "-" + width * i + "px");
}
How to animate() margin adding? I'm trying and trying and trying...
if (i = 1) {
i = i +1
$("#div p").animate().css.("left", "-" + width * i + "px");
}
if (i = 1) {
i = i +1
$("#div p").css(.animate("left", "-" + width * i + "px"));
}
etc.
Thanks!