Created
June 11, 2020 12:21
-
-
Save NataliaAvila/07ab46de6e2a35c4d68d12c5ba7427d7 to your computer and use it in GitHub Desktop.
Check Media Querie with Jquery
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).resize(function () { | |
if ($(window).width() < 992) { | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
// Checks if the screen width is less than 992px.
$(window).on('load resize', function () { if($(window).width() < 992) { console.log(window, '< 992') } else { console.log(window, '>= 992') }; });