breakpoint-manager
v0.1.3
Published
Simplify your Javascript breakpoints
Downloads
2
Readme
Depends on enquire.js.
$(document).bind "breakpoint:match", (e, breakpoint) =>
if breakpoint is "desktop"
@onDesktop()
else
@onMobile()
breakpointManager = new BreakpointManager
scope: $(document)
breakpoints:
mobile:
min: null
max: 799
desktop:
min: 800
max: null