A simple javascript plugin that provides a visual cues for css breakpoints.
I was having trouble keeping track of what breakpoints I was looking at when previewing projects in the browser so I decided to build this little plugin to help developers track what they breakpoints they were viewing. This plugin shows the developer the current screen width, the breakpoint's name/value (set by the developer), and provides visual cues via color to inform the developer.
See what this is all about -- view the demo.
Things are pretty straightforward here:
To add Visual Breakpoints, add the following before the closing body
tag of your project:
<script type="text/javascript" src="your/path/to/width-check.js"></script>
To add your own breakpoints, simply open width-check.js
and edit/add/remove the default breakpoints in the plugin to match what's currently set up in your stylesheets.
"Start with the small screen first, then expand until it looks like shit. TIME FOR A BREAKPOINT!" –Stephen Hay