transform = img.style.webkitTransform; ... transform = "rotate(45deg)";
transform = "rotate(45deg)"; ... img.style.webkitTransform=transform;