Created
June 18, 2012 12:54
-
-
Save imjacobclark/2948248 to your computer and use it in GitHub Desktop.
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
$(document).ready(function(){ | |
$('.sponsorFlip').one("mouseenter mouseleave",function(){ | |
var elem = $(this); | |
if(elem.data('flipped')) | |
{ | |
elem.revertFlip(); | |
elem.data('flipped',false) | |
} | |
else | |
{ | |
elem.flip({ | |
direction:'rl', | |
speed: 250, | |
onBefore: function(){ | |
elem.html(elem.siblings('.sponsorData').html()); | |
} | |
}); | |
elem.data('flipped',true); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment