Created
May 10, 2019 18:17
-
-
Save LukeWJensen/823c47f57089f80556b5c00cba4bf7e6 to your computer and use it in GitHub Desktop.
[JS MatchMedia Method] #responsive
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
var swmq = window.matchMedia( "(min-width: 767px)" ); | |
if (swmq.matches){ | |
//code to apply to query match | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment