Skip to content

Instantly share code, notes, and snippets.

@stagas
Created April 18, 2011 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stagas/926364 to your computer and use it in GitHub Desktop.
Save stagas/926364 to your computer and use it in GitHub Desktop.
$(function() {
var $body = $('body')
, $book = $('#book')
;(function animate_background() {
$body.animate({ backgroundColor: "#abcdef" }, 1000, function(){
$body.animate({ backgroundColor: "#000" }, 1000, animate_background)
})
}())
;(function display_icon(){
$book.hide(1000, function(){
$book.show(1000, display_icon)
})
}())
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment