Skip to content

Instantly share code, notes, and snippets.

@chrishutchinson
Last active October 13, 2018 20:23
Show Gist options
  • Save chrishutchinson/9908f9442b7fc7e7b4fc749df7cacb53 to your computer and use it in GitHub Desktop.
Save chrishutchinson/9908f9442b7fc7e7b4fc749df7cacb53 to your computer and use it in GitHub Desktop.
Hacking with JavaScript and Shortcuts (#1)
const barrelRollStyleTag = document.createElement("style");
barrelRollStyleTag.innerText = `
@keyframes roll {
from { -webkit-transform: rotate(0deg) }
to { -webkit-transform: rotate(360deg) }
}
body {
animation: roll 4s 1;
}
`;
document.head.appendChild(barrelRollStyleTag);
completion();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment