Skip to content

Instantly share code, notes, and snippets.

@jiyeonseo
Created February 7, 2015 14:43
Show Gist options
  • Save jiyeonseo/19204430b2ed43598464 to your computer and use it in GitHub Desktop.
Save jiyeonseo/19204430b2ed43598464 to your computer and use it in GitHub Desktop.
easteregg-overscroll
<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