Webkit transform

From WebOS Internals
Jump to: navigation, search

Webkit Transform scripts

dynamic rotation:
document.getElementById('elementId').style.WebkitTransform = 'rotate('+ variableName + 'deg)';

static rotation:
document.getElementById('elementId').style.WebkitTransform = 'rotate(45deg)';