Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 482 Bytes

README.md

File metadata and controls

22 lines (12 loc) · 482 Bytes

screen-size-getter

Tie your JS to your actual breakpoints. Check it out here: http://mathiasrechtzigel.com/JS-screensize-getter/

In each of your stylesheets add a qualifier to your body:after {content:"small/medium/large"}

Invoke this by calling currentWindowSize

If the functionality changes between small & medium just throw it into a if/else statment.

if (currentWindowSize === "small"){

//Do stuff

}

else {

//Do some other stuff

}