Skip to content

Instantly share code, notes, and snippets.

@knguye1999
Created January 25, 2021 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knguye1999/f7b0240b02cbce8ae96c0e226fb4f769 to your computer and use it in GitHub Desktop.
Save knguye1999/f7b0240b02cbce8ae96c0e226fb4f769 to your computer and use it in GitHub Desktop.
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