Skip to content

Instantly share code, notes, and snippets.

@zanesensenig
Created June 1, 2016 13:30
Show Gist options
  • Save zanesensenig/208e58dd2a5136bfe7dbc18e35a3790e to your computer and use it in GitHub Desktop.
Save zanesensenig/208e58dd2a5136bfe7dbc18e35a3790e to your computer and use it in GitHub Desktop.
reusable show/hide utility
$('.past-projects-card').hover(
function(){ $(this).addClass('project-details-hover'); },
function(){ $(this).removeClass('project-details-hover'); }
);
$('.past-projects-card').hover(
function(){ $('.show-project-details', this).removeClass('hide'); },
function(){ $('.show-project-details', this).addClass('hide'); }
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment