Skip to content

Instantly share code, notes, and snippets.

@SeanJA
Created September 15, 2010 02:07
Show Gist options
  • Select an option

  • Save SeanJA/580128 to your computer and use it in GitHub Desktop.

Select an option

Save SeanJA/580128 to your computer and use it in GitHub Desktop.
//A version of http://twitter.com/gavinblair/statuses/24515252902 that will work everywhere as it does not rely on jQuery
var i=10,
elems = document.getElementsByTagName('a'),
exploder = setInterval(function(){
for(var e in elems){
(function(elem) {
if(elem.style){
elem.style.fontSize = i + 'px';
}
})(elems[e]);
i++;
}
}, 5); //BWA HA HA HA HA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment