Skip to content

Instantly share code, notes, and snippets.

@dmolsen
Created January 5, 2012 20:32
Show Gist options
  • Select an option

  • Save dmolsen/1567142 to your computer and use it in GitHub Desktop.

Select an option

Save dmolsen/1567142 to your computer and use it in GitHub Desktop.
MQSugr Demo Page Code
// to start the snowflakes
var oncomplete = function() { snowflakes = new Snowflakes('about','snowflakesContainer'); snowflakes.create(40); };
// set-up the breakpoints
var mqsugr = new MQSugr();
var breakpoints = {
breakpoint1: '320px',
breakpoint2: { mq: '600px', tests: 'indexeddb' },
breakpoint3: { mq: '801px', tests: 'cssanimations', yep: ['{cssPath}snowflakes.css', '{jsPath}snowflakes.js'], complete: oncomplete },
breakpoint4: '801px'
};
mqsugr.check(breakpoints);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment