I am having problems getting a scroll effect to work in Firefox, I have it working fine in Chrome, Safari and Opera with this code, I can't see what is wrong with the '-moz-transform' line of code.
I have checked in the Firefox browser and it just shows the following
element {
transform: rotate(0deg);
}
The rotate value remains at zero, I am fairly new to jQuery and I am not sure how to debug from here. Please see my code below:
$(window).scroll(function(){
var $cog = $('#my-div'),
$body = $(document.body),
bodyHeight = $body.height();
$cog.css({
'transform': 'rotate(' + ($body.scrollTop() / bodyHeight * -360) + 'deg)',
'-moz-transform': 'rotate(' + ($body.scrollTop() / bodyHeight * -360) + 'deg)',
'-webkit-transform': 'rotate(' + ($body.scrollTop() / bodyHeight * -360) + 'deg)',
'-o-transform': 'rotate(' + ($body.scrollTop() / bodyHeight * -360) + 'deg)'
});
});