Skip to content

WINTR/Breakpoint-Manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simplify your Javascript breakpoints with a simple breakpoint definition and callback syntax

BreakpointManager = require "breakpoint-manager"

$(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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published