Created
September 2, 2019 16:38
-
-
Save lincoln-chawora/4024f83b5e47241e00efbed9fa55e97e to your computer and use it in GitHub Desktop.
How to make changes on the window resize using the jquery-smartresize library
This file contains 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
$(window).on('debouncedresize', function() { | |
var win = $(this); | |
if (win.width() > 768) { | |
$footerMenuContent.find('li:hidden').show(); | |
} else { | |
$footerMenuContent.find('> .menu > li:not(.first)').hide(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Jquery-smartresize Library: https://github.com/louisremi/jquery-smartresize