Created
September 25, 2014 12:00
-
-
Save andymantell/696614303124500b342e to your computer and use it in GitHub Desktop.
conduct.js basic usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conduct( | |
{ | |
'media_queries': | |
[ | |
{ | |
query: 'max-width: 600px', | |
match: function() { | |
// This code will run when this media query moves from an unmatched state to a matched state | |
}, | |
unmatch: function() { | |
// This code will run when this media query moves from a matched state to an unmatched state | |
} | |
}, | |
{ | |
query: 'min-width: 601px', | |
match: function() { | |
// This code will run when this media query moves from an unmatched state to a matched state | |
}, | |
unmatch: function() { | |
// This code will run when this media query moves from a matched state to an unmatched state | |
} | |
}, | |
], | |
'timeout': 300 // optional - default provided | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment