luskyj89
9/19/2013 - 2:06 PM

Recognize current element on mouseover when other elements share the same class name.

Recognize current element on mouseover when other elements share the same class name.

$( ".thumbnail" ).hover(
  function() {
    $( this ).addClass( "current" );
      $( ".current .overlay" ).fadeIn( 300 );
  }, function() {
      $( ".current .overlay" ).fadeOut( 200 );
      $( this ).removeClass( "current" );
  }
);