var angles = {x: 45, y: 34, z: 64}; var css = `rotateX(${angles.x}deg) rotateY(${angles.y}deg) rotateZ(${angles.z}deg)`;