Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js transform

// To use multiple transform properties for one element, you have to add += to your next line.

document.getElementById("myId").style.transform = "rotateX(" + x + "deg)";
document.getElementById("myId").style.transform += "rotateY(" + y + "deg)";
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #transform
ADD COMMENT
Topic
Name
2+7 =