Created
January 25, 2021 20:12
-
-
Save knguye1999/81e23758e8460052493bcb15c83e76ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var el = document.getElementsByClassName('uw-patch')[0] | |
var currentRotation = 0 | |
function spin(){ | |
currentRotation++ | |
var angle = 'rotate(' + currentRotation + 10 + 'deg)' | |
return el.style.transform= angle | |
} | |
setInterval(spin, 1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment