Created
July 7, 2015 11:48
-
-
Save hraban/e669edce68fbb9cd004b to your computer and use it in GitHub Desktop.
animated favicon without gif
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<link rel=icon id=favicon > | |
<script> | |
var i = 0; | |
setInterval(function () { | |
i=(i+1)%4; | |
document.getElementById('favicon').href= | |
["https://upload.wikimedia.org/wikipedia/commons/thumb/9/9b/U%2B2197.svg/19px-U%2B2197.svg.png", | |
"https://upload.wikimedia.org/wikipedia/commons/thumb/a/aa/U%2B2198.svg/19px-U%2B2198.svg.png", | |
"https://upload.wikimedia.org/wikipedia/commons/thumb/a/ab/U%2B2199.svg/19px-U%2B2199.svg.png", | |
"https://upload.wikimedia.org/wikipedia/commons/thumb/f/fc/U%2B2196.svg/19px-U%2B2196.svg.png"][i]; | |
}, 500); | |
</script> | |
</head> | |
<body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment