Nicely Pointed Mandibles
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    responsive-resizepublic

    responsive-resize

    Helper to manage media queries in javascript.

    Usage:

      ResponsiveResize.register("(max-width: 1000px)", function(){
        console.log('entering 1000');
        document.body.style.backgroundColor = 'blue'
      }, function(){
        console.log('exiting 1000');
        document.body.style.backgroundColor = 'purple'
      });

    install

    npm i responsive-resize

    Downloadsweekly downloads

    2

    version

    0.0.1

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar