Why is this background position animation jumping instead of easing?
Can't figure out why this background animation is jumping. Code and link are below:
- jQuery(document).ready(function(){
-
- jQuery('.program_info_2').hover(
- function()
- {
- jQuery(this).animate({height: '242px'}, {duration:300});
- jQuery('.program_info').stop().animate({height: '183px'}, {duration:300});
- jQuery('#masthead3').stop().animate({backgroundPosition: '0 -143px'}, {duration:300});
- jQuery('#masthead1').stop().animate({backgroundPosition: '0 -143px'}, {duration:300});
-
- },
- function()
- {
- jQuery(this).animate({height: '96px'}, {duration:1});
- jQuery('.program_info').stop().animate({height: '327px'}, {duration:300});
- jQuery('#masthead3').stop().animate({backgroundPosition: '0 0'}, {duration:300});
- jQuery('#masthead1').stop().animate({backgroundPosition: '0 0'}, {duration:300});
- }
- );
-
- });