MegaSlider and Scrolling to anchor

palo's picture
palo
Thu, 07/02/2015 - 16:23
#1
MegaSlider and Scrolling to anchor

Hi there,

I wonder if there is a way to make the smooth scroll to specific #anchor on the site when using the text field in MegaSlider. I tried to assign the "link" parameter in the text properties box with #footer anchor, but when I clicked the button, it jumps directly to specified anchor point but without animation. Thanks for any kind of help.

Best,

Paul

palo's picture
palo
Thu, 07/02/2015 - 17:22

maybe I figured it out... in "js/front/main.js" I've added the css class defining MD Slider (.md-object).

Is that correct solution?

Changed code:

if (jQuery().localScroll) {
jQuery('.mainmenu, #land, .md-object').localScroll({
duration:1900,
easing:'easeOutQuart',
offset: 0
});
phuonght's picture
phuonght
Thu, 07/02/2015 - 22:40

Hi,

If it works well on your site, we think it's a great solution :)

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.