Created
January 25, 2021 20:13
-
-
Save knguye1999/f7b0240b02cbce8ae96c0e226fb4f769 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 + 5 + 'deg)' | |
return el.style.transform= angle | |
} | |
setInterval(spin, 1300) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment