responsive-resize

Management class for javascript based media queries.

npm install responsive-resize
2 downloads in the last week
4 downloads in the last month

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'
  });
npm loves you