Difference between revisions of "Webkit transform"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
Webkit Transform scripts<br> | Webkit Transform scripts<br> | ||
<br> | <br> | ||
− | dynamic:<br> | + | dynamic rotation:<br> |
document.getElementById('elementId').style.WebkitTransform = 'rotate('+ variableName + 'deg)';<br> | document.getElementById('elementId').style.WebkitTransform = 'rotate('+ variableName + 'deg)';<br> | ||
<br> | <br> | ||
static rotation:<br> | static rotation:<br> | ||
document.getElementById('elementId').style.WebkitTransform = 'rotate(45deg)';<br> | document.getElementById('elementId').style.WebkitTransform = 'rotate(45deg)';<br> |
Latest revision as of 04:14, 21 July 2009
Webkit Transform scripts
dynamic rotation:
document.getElementById('elementId').style.WebkitTransform = 'rotate('+ variableName + 'deg)';
static rotation:
document.getElementById('elementId').style.WebkitTransform = 'rotate(45deg)';