Last active
August 29, 2015 14:02
-
-
Save lafikl/79f1ba78ca22cc0f081e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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