JQuery Spritely and Google Chrome

I am using excellent jQuery Spritely for this website

The problem I am facing is the animation of the helicopter in Google Chrome. It works fine in IE7, 8, 9 and FF up to V10.

I use this line of code so that the helicopter can follow the line:

$("#helicopter").sprite({fps: 1, no_of_frames: 1}) .spRandom({ top: 5, left: 800, right: 800, bottom: 10, speed: 20000 }); 

The helicopter goes from right to left across in the forward direction in all browsers, except for chrome. - In chrome, this goes backwards, Which is rather perplexing as I thought the rendering of Chrome was similar to FF?

Any help on this is greatly appreciated as I am on my way trying to solve it.

+6
source share
2 answers

Thanks for answers. Yes, I solved it.

What I did in the end, I quickly came up with the idea that I flipped the image of a helicopter and sent it in a different direction. As you can see from the url example.

Greetings

+1
source

It works great in all browsers. No need to change the code.

Your chrome copy may have problems. Reinstall or repair chrome, if possible, and check again.

0
source

Source: https://habr.com/ru/post/912036/


All Articles