Skip to content

Instantly share code, notes, and snippets.

View chrismitchell's full-sized avatar
🇨🇦

Chris Mitchell chrismitchell

🇨🇦
  • Sherwood Park, AB
  • 06:44 (UTC -06:00)
View GitHub Profile
@chrismitchell
chrismitchell / breakpoints.js
Last active February 28, 2018 20:35
breakpoints
window.breakpoints = {
xs: { min: 0, max: 480 },
sm: { min: 481, max: 768 },
md: { min: 769, max: 992 },
lg: { min: 993, max: 10000 },
is: function(size) {
return (
window.innerWidth >= breakpoints[size].min &&
window.innerWidth <= breakpoints[size].max