Skip to content

Instantly share code, notes, and snippets.

@Lewiscowles1986
Created December 30, 2016 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lewiscowles1986/d6339f0b33aa3871b947110c4ee70fb6 to your computer and use it in GitHub Desktop.
Save Lewiscowles1986/d6339f0b33aa3871b947110c4ee70fb6 to your computer and use it in GitHub Desktop.
JQuery NiceScroll
/*
* Requirements for nicescroll
* //www.codesign2.co.uk/js/jquery-1.11.3.min.js
* //www.codesign2.co.uk/js/jquery.nicescroll.min.js
*/
!function($) {
window.CD2 = window.CD2 || {};
window.CD2.style = window.CD2.style || {};
$(function() {
$("body").niceScroll({
cursorcolor: window.CD2.style.fghighlight || "#333",
cursoropacitymin: 0.3,
background: window.CD2.style.bghighlight || "#bbb",
cursorborder: "0",
autohidemode: false,
cursorminheight: 60,
cursorwidth: 15,
touchbehaviour: true,
});
$("body.add-padding > section").css({"padding-right":"25px","padding-left":"10px"});
});
}(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment