Skip to content

eskarlat/js-mediaquery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm version

npm downloads

Browser Support

Chrome Firefox Safari Opera Edge IE
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"
    } 
});

About

Helps to match and run custom scripts with different resolution

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published