Skip to content

Instantly share code, notes, and snippets.

@tswicegood
Forked from rdmurphy/dabr.js
Created November 3, 2011 19:50
Show Gist options
  • Save tswicegood/1337591 to your computer and use it in GitHub Desktop.
Save tswicegood/1337591 to your computer and use it in GitHub Desktop.
"Do a Barrel Roll!" Bookmarklet

<a href='javascript:(function(){var css=document.createElement("style");css.type="text/css";css.innerHTML="@-moz-keyframes roll { 100% { -moz-transform: rotate(360deg); } } @-o-keyframes roll { 100% { -o-transform: rotate(360deg); } } @-webkit-keyframes roll { 100% { -webkit-transform: rotate(360deg); } } body{ -moz-animation-name: roll; -moz-animation-duration: 4s; -moz-animation-iteration-count: 1; -o-animation-name: roll; -o-animation-duration: 4s; -o-animation-iteration-count: 1; -webkit-animation-name: roll; -webkit-animation-duration: 4s; -webkit-animation-iteration-count: 1; }";document.getElementsByTagName('head')[0].appendChild(css)})();'>Evasive Maneuvers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment