Skip to content

Instantly share code, notes, and snippets.

@y0mbo
Last active March 24, 2017 14:42
Show Gist options
  • Save y0mbo/5722909 to your computer and use it in GitHub Desktop.
Save y0mbo/5722909 to your computer and use it in GitHub Desktop.
Twitter shows additional actions when you hover over a tweet. Here's some jQuery that does the same thing. It assumes the item to show is within the item being hovered over.
$('.parentItemToHoverOver').hover(
function () {
$(this).find('.childItemToShowOnParentHover').fadeTo(500,1);
},
function() {
$(this).find('.childItemToShowOnParentHover').fadeTo(500,0);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment