Skip to content

Instantly share code, notes, and snippets.

@imjacobclark
Created June 18, 2012 12:54
Show Gist options
  • Save imjacobclark/2948248 to your computer and use it in GitHub Desktop.
Save imjacobclark/2948248 to your computer and use it in GitHub Desktop.
$(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