Created
May 22, 2011 11:09
-
-
Save clawfire/985371 to your computer and use it in GitHub Desktop.
animation on each element of a caroussel, binded by a custom event
This file contains hidden or 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
$('#caroussel-content').bind('caroussel-change',function(){ | |
$('#caroussel-content figure').mouseenter(function(){ | |
$(this).children("figcaption").animate({top: "0"}, 500); | |
}).mouseleave(function(){ | |
$(this).children("figcaption").animate({top: "220px"}, 500); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pb solved ! :p