Scrolling speed Portfolio

khm's picture
khm
Tue, 10/27/2015 - 15:36
#1
Scrolling speed Portfolio

Hi

Could you pls tell me where i can change scrolling behavior speed for potrfolio functions? Specifically think about 

- slide down

- slide up on close.

Thanks

phuonght's picture
phuonght
Wed, 10/28/2015 - 06:48

Hi,

Please open file scripts.js (/sites/all/themes/md_max/js/scripts.js )

- Find line 405 : in function jQuery('.project-link, .prev-port-link, .next-port-link').live('click', function (e) {

you can see

jQuery(window).scrollTo(targetDiv, {duration: 1600, easing: 'linear', offset: offsetHeight, axis: 'y'}, {queue: false});

=> "Duration" is "Scroll slide down" speed

- Find line 430 :  in function jQuery('.close-port-link').live('click', function (e) {

you can see

jQuery(window).scrollTo(targetDiv, {duration: 1600, easing: 'linear', offset: offsetHeight, axis: 'y'}, {queue: false});

=> "Duration" "Scroll slide up on close"

khm's picture
khm
Mon, 11/02/2015 - 06:00

Thank you very much I will try this out!

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.