CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript frameworks (http://www.codingforums.com/forumdisplay.php?f=62)
-   -   Code not working (http://www.codingforums.com/showthread.php?t=282915)

farmlord 11-25-2012 01:29 AM

Code not working
 
Hey guys got a piece of code which is not working atm. Tried a lot of things.

Code:

$('#super')
.animate
({left: '-=550px'},1000).delay(100)
.animate
({left: '-=250px'},10000).delay(100)
});
})(jQuery);

Whats happing is that it will do the first bit but not the bits after and iam sure iam missing a bracket or something but i cant figure it out. Any help would be great. Thanks

DanInMa 11-25-2012 03:23 AM

so you want to move the element 550px in 1 seconds, delay a milliseconds, then move 250px in 10 seconds, then delay again? ( whats the second delay, delaying??)

farmlord 11-25-2012 01:25 PM

Sorry i mean i wawnt to move left 150 and it should take 1 second and then i want the div to stop and wait 1 second and then i want it to move left and it will take 1 second and then delay again for 1 second. If you get that :0


All times are GMT +1. The time now is 09:13 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.