Created
May 14, 2014 07:57
-
-
Save humaan/1ab82ad3ac49d9033360 to your computer and use it in GitHub Desktop.
Minor Detailing
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
//Minor Detailing | |
parts.cover = paper.circle(20.5, 20.5, 3).attr({ | |
fill : '#000', | |
opacity : 1 | |
}); | |
//Hover animations | |
$('#logo').hover(function(){ | |
... | |
//Hide and shrink | |
parts.cover.animate({ | |
opacity : 0, | |
r : 1 | |
}, 50); | |
}, function(){ | |
... | |
//And back again | |
parts.cover.animate({ | |
opacity : 1, | |
r : 3 | |
}, 50); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment