Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- (function () {
- jQuery(window).load(function () {
- var ua = window.navigator.userAgent;
- ms_ie = /MSIE|Trident/.test(ua);
- if ( ! ms_ie ) {
- jQuery('.new-home-section').parallaxie({
- speed: 0.5,
- offset: 0,
- });
- }
- var top = $('.new-home-section:first').offset().top - 50;
- var bottom = $('.new-home-section:last').offset().top + $('.new-home-section:last').outerHeight();
- $(window).scroll(function (e) {
- var scrollPosition = $(window).scrollTop();
- if (scrollPosition >= top && scrollPosition <= bottom) {
- $("body").niceScroll({
- scrollspeed: 250,
- mousescrollstep: 35
- });
- } else {
- $("body").getNiceScroll().remove();
- }
- });
- })
- })();
- </script>
Add Comment
Please, Sign In to add comment