Making a Gif-fed Favicon 🌔 October 19 2014
This began as a fun, hacky gimmick. Now I’m wondering what’s possible in such a constrained medium. Narratives? 3 dimensionality?
I’d love to see what you come up with. Here’s the code:
var icoCounter = 2;
var ico = $('#favicon');
var crazyFavicon = setInterval(function(){
if ( icoCounter < 7 ) {
icoCounter = icoCounter + 1;
} else {
icoCounter = 1;
}
//iterate through frames
ico.attr('href', '/img/favicon' + icoCounter + '.png');
}, 50);
This was partially inspired by A Boy and His Atom, the smallest film ever made.