Skip to content

Instantly share code, notes, and snippets.

@fractastical
Forked from bengl/barrel_bookmarklet.js
Created November 3, 2011 22:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fractastical/1338113 to your computer and use it in GitHub Desktop.
Save fractastical/1338113 to your computer and use it in GitHub Desktop.
A bookmarklet to replicate Google's "do a barrel roll" on any arbitrary page.
javascript:(function(a,k,t,n,u,i,m,o,w){document.head.innerHTML+=['<style>@-',m,k,m,t,'@-',o,k,o,t,'@-',w,k,w,t,'body{-',m,a,n,m,a,u,m,a,i,'-',o,a,n,o,a,u,o,a,i,'-',w,a,n,w,a,u,w,a,i,'}</style>'].join('');})("-animation","-keyframes roll { 100% { -","-transform:rotate(360deg); } }","-name:roll;-","-duration:4s;-","-iteration-count:1;","moz",'o','webkit');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment