Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to rotate an image in js

// Access DOM element object
const rotated = document.getElementById('rotated');// Rotate element by 90 degrees clockwise
rotated.style.transform = 'rotate(90deg)';
Source by javascript.plainenglish.io #
 
PREVIOUS NEXT
Tagged: #rotate #image #js
ADD COMMENT
Topic
Name
8+5 =