I am in the process of designing my portfolio website and I am interested in adding a class to my document on load, then changing or removing that class upon hover. To enhance my images, I am using lightgallery and CSS gram filters. In a previous attempt, I incorporated a list but found it didn't meet my requirements. Check out the previous code here
$("#gallery a").on({
mouseenter : function() {
$(this).find(".nak-gallery-poster").removeClass("inkwell").addClass("mayfair");
},
mouseleave : function() {
$(this).find(".nak-gallery-poster").removeClass("mayfair").addClass("inkwell");
}
});
After modifying the jQuery code based on the suggestions from the previous code, I encountered issues. Any assistance would be greatly appreciated. View my CodePen