Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

alleyinteractive/jquery-breakpoints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#jQuery-Breakpoints.js

Simple breakpoint events for responsive JS.

###Define your breakpoints (desktop is set by default):

$( window ).breakpoints( {
	breakpoints : { 
		'mobile' : 640,
		'mini-tablet' : 1024,
		'tablet' : 1280
	}
} );

###Subscribe to a breakpoint event:

$( window ).on( 'breakpointChange', function( e, data ) {
	console.log( 'Active Breakpoint: ' + data.activeBreakpoint );
	console.log( 'Deactivated Breakpoint: ' + data.deactivatedBreakpoint );
} );

It's literally that simple.

About

A simple jQuery plugin for managing breakpoints and change events

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •