1 Replies - 2241 Views - Last Post: 23 September 2012 - 11:31 PM

#1 afridi2129  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 66
  • Joined: 04-November 07

Jquery Image Animation Problem

Posted 22 September 2012 - 11:06 AM

Hello Everyone,

In Following Website If you can see big image slider is moving from right bottom to left top.

it is using this code:

$('#bgImageWrapper .new').animate({width:$('#bgImageWrapper .new').width()+bW, height:$('#bgImageWrapper .new').height()+bH},bgTime+2000);


Now i want to make this in a way so images randomly move , like from right to left, or left to right. top to bottom etc. Different easing styles.
It is using .animate function , i tried lots of ways to do it, for example,

$("#bgImageWrapper .new").animate({left: "+=200"}, 4000);
$("#bgImageWrapper .new").animate({left: "-=200"}, 4000);



But dont work. i need to move images atleast in 2 ways, and randomly. Help .Thanks

Is This A Good Question/Topic? 0
  • +

Replies To: Jquery Image Animation Problem

#2 amit.soni  Icon User is offline

  • D.I.C Head

Reputation: 26
  • View blog
  • Posts: 73
  • Joined: 19-November 10

Re: Jquery Image Animation Problem

Posted 23 September 2012 - 11:31 PM

your code is working fine for me...
check this Fiddle ...

http://jsfiddle.net/..._7soni/89vze/3/

This post has been edited by amit.soni: 23 September 2012 - 11:33 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1