Created
May 14, 2014 07:59
-
-
Save humaan/03adcbfbe74b4d64f14c to your computer and use it in GitHub Desktop.
Extra Mask
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
//Create the additional mask shapes and apply to the group | |
parts.tent_mask = paper.path( paths.small_tent ).attr({ | |
fill : '#fff' | |
}); | |
logo_group.attr({ | |
mask : parts.tent_mask | |
}); | |
//Hover animations | |
$('#logo').hover(function(){ | |
... | |
//Animate to the big tent mask | |
parts.tent_mask.animate({ | |
path : paths.big_tent | |
}, 800, mina.elastic ); | |
}, function(){ | |
... | |
//Revert to the small tent mask | |
parts.tent_mask.animate({ | |
path : paths.small_tent | |
}, 800, mina.elastic ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment