Image scroller 'lagging' when using background-size

Image scroller 'lagging' when using background-size

Hi,
I am currently building a fullheight thumbnail scroller with thumbnails of 700px. However I want these thumbnails to stretch the full height of the container, hence I want to use this:

  1. #scroller li.cover a,#scroller li.cover a div{background-position:top center;background-repeat:no-repeat;background-size:cover;}
However this makes the scroller really laggy, you can see it at: my website
When I remove the background-size from the css property, the problem is solved. However I do still want to stretch full background width. How can I solve this? My full jQuery:

  1. (function($){
  2.     var $container;
  3.     var $containerwidth;
  4.    
  5.     var $startheight;
  6.     var $startwidth;
  7.    
  8.     var $window = $(window);
  9.     var $windowtop;
  10.    
  11.     var $list = $("#scroller ul");
  12.     var $box = $("#scroller li");

  13.     $.fn.outofbounds = function() {
  14.         // define all variables
  15.         $container = $(this);
  16.         $startheight = $(this).height();
  17.         $startwidth = $box.width();
  18.         $windowtop = (($window.height() - $startheight) / 2) * -1;
  19.         // set the width of the scroller really really high
  20.         $container.width(999999);
  21.         // get the actual width
  22.         $containerwidth = $list.width();
  23.         $list.css({"display":"block"});
  24.        
  25.         // when the document is ready
  26.         $(document).ready(function(){
  27.             $box.each(function() {
  28.                 var t = $(this);
  29.                 var location = t.attr("class");
  30.                 t.find("a").css({"background-image":"url(./assets/images/"+location+"/color.jpg)"}).append("<div>").find("div").css({"background-image":"url(./assets/images/"+location+"/grey.jpg)"});
  31.             });
  32.             $box.addClass("cover");
  33.         });
  34.        
  35.         // and everything is loaded
  36.         $window.bind("load", function(){
  37.             // give all boxes a hover effect
  38.             $box.hover(handle_over, handle_out);

  39.             // move over the scroller and see what happens
  40.             $container.bind("mousemove", function(event) {
  41.                 mouse_move(event);
  42.             });
  43.         });
  44.     }
  45.    
  46.     function handle_over() {
  47.         $(this).find("div").stop().animate({opacity:0}, 750);
  48.         return false;
  49.     }
  50.    
  51.     function handle_out() {
  52.         $(this).find("div").stop().animate({opacity:1}, 500);
  53.         return false;
  54.     }
  55.    
  56.     function mouse_move(event) {
  57.         if($containerwidth > $window.width()) {
  58.             var mouse_pos = event.pageX;
  59.             var mouse_perc = mouse_pos / ($window.width());
  60.             var dest = -(($containerwidth - $window.width()) * mouse_perc);
  61.             $container.stop().animate({left:dest}, 400, "linear");
  62.         } else {
  63.             $container.css("left",0);
  64.         }
  65.         return false;
  66.     }
  67. })(jQuery);
What am I doing wrong? Pleas beware I'm a designer, not a high tech technician

Thank you,

Maarten