Last active
October 19, 2022 10:01
-
-
Save gicolek/07eb131450de0a4f5c91dda5b86c66e4 to your computer and use it in GitHub Desktop.
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
jQuery( document ).ready(function() { | |
jQuery('.c-anim_block__img-wrap').hover(function () { // while hoverin on our container | |
jQuery(this).toggleClass('is-active'); // add is-active class to the hovered element | |
jQuery('.c-anim_block__img-wrap').not(this).toggleClass('is-inactive'); // and inactive class to each other element | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment