Webkit transform

From WebOS Internals

Revision as of 04:14, 21 July 2009 by Sgtkwol (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)';

Personal tools
Google AdSense