Seagate to buy LaCie for $186 million in Back Page News


2 replies to this topic - - - - -

#1 Brian Miller

    Resident Elite

  • 1,497 posts
  • Joined: 15-December 10

Posted 26 January 2012 - 05:37

Using jQuery, I'm moving the background image of an HTML element when a certain event occurs. The sample code below works perfectly in IE and Chrome. However, FireFox is being a pain.


$("#someItem").stop().animate({"background-position-x":"100px"}, "easeOutQuart");

I'd hard to find info on this but on a friend told me that FF doesn't support "background-position-x"

Is this true? If so, how else can I move the background image horizontally in FF?


#2 +Seahorsepip

    seahorsepip.deviantart.com

  • 555 posts
  • Joined: 23-January 11
  • Location: Vlissingen, Netherlands
  • OS: Windows 7 Ultimate

Posted 26 January 2012 - 10:56

background-position is more supported so something like this:
$("#someItem").stop().animate({"background-position":"x y"}, "easeOutQuart");
make sure to add IE9.js before jquery and this code to get support on IE8 and lower ;)

#3 Brian Miller

    Resident Elite

  • 1,497 posts
  • Joined: 15-December 10

Posted 27 January 2012 - 00:32

Thanks.