I want to change the -webkit-transform: rotate() property using JavaScript dynamically, but the commonly used setAttribute is not working:
img.setAttribute('-webkit-transform', 'rotate(60deg)');
The .style is not working either...
How can I set this dynamically in JavaScript?