jQuery Animation + background image swap -


I'm trying to screw up my weight with jQuery, and went into a problem that stumped me Have done

Actually, I am trying to animate the truck to the right of the left hand side of the screen, then when the screen goes to the right, the background image of the truck changes. On the other hand, the image of the truck has to be faced, and it is animated on the screen again, and will be repeated for ever.

I can swap the background image by moving the screen to the screen, but can not get everything to be in some sort of rational order - the background image of the IE truck swap on page load It is done and when the right from left to right is completed.

Even the code is still there, and I know that the syntax is probably wrong, but hopefully what you'll see is what I'm trying to do:

 < Code> $ (document) .ready (function () {$ ("Animation.wrap"). Animate ({left: "845px"}, {duration: 9000, line: true}) {$ (". "). Css ('background', 'transparent url (/Resources/Images/clearence/truckLeft.png) no-repeat 0' ';}}}); Use the callback function on << code>   

first .animate After the completion of which the fire starts, so that things can be sorted (see see syntax):

  $ (document) .ready (function () {$ ("Animationwrap"). {Left: "845px"}, 9000, Function () {CSS ('background', 'Transparent url (/Resources/Images/clearence/truckLeft.png) No-repeat 0'); Animate ({left: 0} , 9000);});});  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -