Skip to content

Instantly share code, notes, and snippets.

@lafikl lafikl/instance.js
Last active Aug 29, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.