Created
February 7, 2015 14:43
-
-
Save jiyeonseo/19204430b2ed43598464 to your computer and use it in GitHub Desktop.
easteregg-overscroll
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
<img class="easter-egg top-cat" src="http://tholman.com/overscroll/img/cat-1.png" /> | |
<img class="easter-egg bottom-cat" src="http://tholman.com/overscroll/img/cat-2.png" /> | |
<!-- JS --> | |
<script src='http://tholman.com/overscroll/overscroll.js'></script> | |
<script> | |
var overscroll = new Overscroll(); | |
overscroll.bindElement( document.querySelector('.top-cat'), 'top', 4); | |
overscroll.bindElement( document.querySelector('.bottom-cat'), 'bottom', 4); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment