๐ฅ๐ Working with media queries in JS
new MediaQueryObserver({
mediaQuery: '(max-width: 1024px)',
onMatch: () => console.log(true),
onUnmatch: () => console.log(false),
})
IE / Edge |
Firefox |
Chrome |
Safari |
Opera |
---|---|---|---|---|
IE11, Edge 15+ | 6+ | 36+ | 8+ | 23+ |