Menu icon Foundation
How to add animation to Magellan?

Is there a simple way to add animation to Magellan? I'd like it to slowly scroll to the destination when clicked.

animationMagellan

Is there a simple way to add animation to Magellan? I'd like it to slowly scroll to the destination when clicked.

This post has been closed. No new replies can be added.

Karl Ward over 5 years ago

I believe you would need to integrate something like this:
https://github.com/flesler/jquery.scrollTo

Magellan doesn't really do anything at all with the links, so you are free to apply a javascript that scrolls to the anchor. The standalone animated scroll function itself is quite simple, but you will need to apply it correctly, so it might be better to use the plugin mentioned above ...
Javascript
$('html,body').animate({ scrollTop: YPOSITION }, 'slow');

Matthew over 5 years ago

Thanks Karl, I implemented a similar JS not 5 minutes after I posted this question. Thanks again.