Last active
December 15, 2015 16:59
-
-
Save ScottPolhemus/5292972 to your computer and use it in GitHub Desktop.
Scroll property plugin for Stellar.js to use Zynga Scroller for scrolling.
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
$.stellar.scrollProperty.scrollerScroll = { | |
getLeft: function($elem) { return scroller.getValues().left; }, | |
setLeft: function($elem, val) { scroller.scrollTo(val); }, | |
getTop: function($elem) { return scroller.getValues().top; }, | |
setTop: function($elem, val) { scroller.scrollTo(null, val); } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment