1.0.2 • Published 4 years ago

@evgeny.skarlat/js-mediaquery v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

npm version

npm downloads

Browser Support

ChromeFirefoxSafariOperaEdgeIE
Latest ✔Latest ✔Latest ✔Latest ✔Latest ✔11 ✔

Installing

Using npm:

$ npm i @evgeny.skarlat/js-mediaquery

Example

respond({ 
    breakpoint: "320px",

    run: () => {
        document.getElementById('output').innerText = "matched"
    },

    back: () => {
        document.getElementById('output').innerText = "no matched"
    } 
});