Skip to content

Instantly share code, notes, and snippets.

@TeamBug99
Created September 22, 2021 19:11
Show Gist options
  • Save TeamBug99/94a6d5b3ddd29518901bf3d7a3902ae9 to your computer and use it in GitHub Desktop.
Save TeamBug99/94a6d5b3ddd29518901bf3d7a3902ae9 to your computer and use it in GitHub Desktop.
Hover active and remove class
// active
$('.pt-wrp').on('mouseenter', function () {
$(this).addClass('active').parent().siblings().find('.pt-wrp').removeClass('active');
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment