I'm new to Javascript and I'm having problems with this:
$video.css({
'transform': 'rotate(' + ($body.scrollTop() / bodyHeight * 360) + 'deg) translateY(' + $body.scrollTop() + 'px)'
});
Only the roation works but not the translateY. So, what I want is to have multiple transforms in there. A usual CSS code would be like:
transform: rotate(10deg) translateY(10px);
What am I doing wrong? Probably missing some symbols.