Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-25-2012, 01:29 AM   PM User | #1
farmlord
New to the CF scene

 
Join Date: May 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
farmlord is an unknown quantity at this point
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
farmlord is offline   Reply With Quote
Old 11-25-2012, 03:23 AM   PM User | #2
DanInMa
Senior Coder

 
DanInMa's Avatar
 
Join Date: Nov 2010
Location: Salem,Ma
Posts: 1,307
Thanks: 12
Thanked 204 Times in 204 Posts
DanInMa is on a distinguished road
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??)
__________________
- Firebug is a web developers best friend! - Learn it, Love it, use it!
- Validate your code! - JQ/JS troubleshooting
- Using jQuery with Other Libraries - Jslint for Jquery/other JS library users
DanInMa is offline   Reply With Quote
Old 11-25-2012, 01:25 PM   PM User | #3
farmlord
New to the CF scene

 
Join Date: May 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
farmlord is an unknown quantity at this point
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
farmlord is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:22 AM.


Advertisement
Log in to turn off these ads.