Skip to content

Instantly share code, notes, and snippets.

@wbashir
Created August 20, 2013 14:42
Show Gist options
  • Save wbashir/6282296 to your computer and use it in GitHub Desktop.
Save wbashir/6282296 to your computer and use it in GitHub Desktop.
$(document).on("mouseenter", ".plot .label",
function (event) {
$(this).animate({ opacity: 0 },
function () {
$(this).addClass('hidden-label');
}
).delay(5000).animate({ opacity: 0.85 },
function () {
$(this).removeClass('hidden-label');
}
)
}
);
.hidden-label {
display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment