KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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?
Tags (comma-separated)
Save Edits
Cancel