Skip to content

graymur/width-watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##Width watcher

Small script that allows to create width breakpoints and add listeners to them.

var watcher = WidthWatcher();
watcher.add(320, 480, [767, 768]);

var listener = function (mq) {
   console.log(mq.media);
};

watcher.addListener(listener);
watcher.removeListener(listener);

If you need to support IE9, you need to use matchMedia() polyfill.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published