Skip to content

mellonis/media-query-observer

Folders and files

NameName
Last commit message
Last commit date
May 8, 2021
May 9, 2021
Jun 20, 2020
May 9, 2021
Jun 20, 2020
Jun 20, 2020
Jun 20, 2020
May 9, 2021
Jun 20, 2020
May 30, 2021
May 8, 2021
Jun 20, 2020

Repository files navigation

media-query-observer

πŸ–₯πŸ‘€ Working with media queries in JS

Example

new MediaQueryObserver({ 
  mediaQuery: '(max-width: 1024px)',
  onMatch: () => console.log(true),
  onUnmatch: () => console.log(false),
})

Browsers support

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
Opera
Opera
IE11, Edge 15+ 6+ 36+ 8+ 23+