Skip to content

Instantly share code, notes, and snippets.

@lafikl
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lafikl/79f1ba78ca22cc0f081e to your computer and use it in GitHub Desktop.
Save lafikl/79f1ba78ca22cc0f081e to your computer and use it in GitHub Desktop.
var s = new Steady({
conditions: {
"width": 400,
"min-top": 50,
"max-bottom": 200
},
throttle: 100,
handler: fn
});
function fn(values, done) {
console.log('conditions are met!');
done();
}
s.stop();
setTimeout(function() {
s.resume();
}, 200);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment