我收到了Firefox的这个不寻常的警告.它所指的定位效果是divI旋转作为滚动高度的一个因素.我从来没有遇到任何问题,但这是我应该关注的事情吗?如果没有这个警告,有没有这样的效果?演示此问题的JavaScript是:
//Rotate gears in about section
$('.gear').css({
'transition': 'transform 1s ease-out',
'-webkit-transform': 'rotate(' + Math.round(wScroll / 2) + 'deg)',
'-moz-transform': 'rotate(' + Math.round(wScroll / 2) + 'deg)',
'-ms-transform': 'rotate(' + Math.round(wScroll / 2) + 'deg)',
'transform': 'rotate(' + Math.round(wScroll / 2) + 'deg)',
});
Run Code Online (Sandbox Code Playgroud)
wScroll 是当前的滚动高度