I'm trying to animate only the y position of a background image.
Code works great in all browsers besides Firefox. I've noticed in prior discussion that FF has a problem with background-position-y
but I don't want to include a plugin just for this particular case.
$(".module").animate({
"height": 160,
"background-position-y": cropsize //variable for needed position
}, "slow");
As answered in this question: Still having problems with jQuery background animate - works in safari and IE, nothing else! I should be able to use the plain background-position
property, but doing so has only broken the animation in other browsers.
$(".module").animate({
"height": 160,
"background-position": "0 "+cropsize+"px"
}, "slow");
Perhaps it's just a syntax error I'm missing, but I can't seem to get this working in FF (Latest version)