Created
March 10, 2020 00:38
-
-
Save jason-enstedt/638fae3da7bb48c79e453732f597de61 to your computer and use it in GitHub Desktop.
simple jquery for mouse enter and leave pop up cart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cartbtn = $('.shop-btn'); | |
var popup = $('.popout'); | |
cartbtn.on('mouseenter', function(){ | |
body.classList.add('cartShow'); | |
}); | |
popup.on('mouseleave', function(){ | |
body.classList.remove('cartShow'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment