on-internet
← Community

How to implement the jQuery mcustomscrollbar plugin to create a parallax effect

Stack Overflow ·

I wanted to add parallax effect (different scroll speed) to jQuery custom scroll bar plugin (mCustomScrollbar). I'm combining two examples of code: http://codepen.io/JTParrett/pen/BkDie - different scrolling speeds http://manos.malihu.gr/tuts/custom-scrollbar-plugin/full_page_demo.html - Full page scroller See also - http://manos.malihu.gr/jquery-custom-content-scroller/ (plugin callbacks / functions) I have managed to make both examples work separately, but not together, I have end up with this: j(window).load(function(){ j("body").mCustomScrollbar({ scrollButtons:{ enable:true }, callbacks:{

Comments

Sign in or sign up to comment and upvote.

No comments yet.