-1

I have a strange request from a client that has an image move across the page from left to right of the whole width of the screen when someone clicks on a link... I'm not a javascript expert, but I was hoping someone could please steer me in the right direction on how this could be done?

Thanks! Any help would be greatly appreciated!!!!

Mixmastermichael
  • 143
  • 3
  • 14
  • A possible [duplicate](http://stackoverflow.com/questions/8021779/moving-an-image-from-a-to-b-with-javascript). – linstantnoodles Feb 15 '14 at 00:35
  • hmm thanks for the reply, that issue is soooo similar to what I need. My image is even a van ha, but I just don't know how they actually implement that code. the jquery annimate feature sounds like it should work but I just don't know how to set everything up.... lil help? Sorry – Mixmastermichael Feb 16 '14 at 16:56
  • Can you show me the code you currently have? What have you tried? Stick it in a fiddle and I'll take a look. – linstantnoodles Feb 16 '14 at 18:13
  • Thanks for taking a look. I'm getting so close! I just need to figure out a way to slow down the animation... I'm kinda a jquery noob so maybe it's easier than how I've done it? Here's the js fiddle... feel free to update http://jsfiddle.net/CDRk5/1/ – Mixmastermichael Feb 16 '14 at 18:49

1 Answers1

0

You should look into jQuery animate function. You could animate changing the position of the image in question.

http://api.jquery.com/animate/

steinmas
  • 398
  • 3
  • 9