Support Forums

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

smooth scroll to the anchor - template Eventum

Featured Lock Resolved Issue
Hi

I want to make a smooth scroll to the anchor.

use:
==========
menu
<a href="#one" class="scrollto">Ancor</a>

page
<section id="one">Ancor<section>

before body
<script>
jQuery(document).ready(function() {
jQuery("a.scrollto";).click(function () {
elementClick = jQuery(this).attr("href";)
destination = jQuery(elementClick).offset().top - 50;
jQuery("html:not(:animated),body:not(:animated)";).animate({scrollTop: destination}, 900);
return false;
});
});
</script>
==========
this solution works in helix3 (I tested it) but does not work in eventum. Onepage template (Xeon) no good.

how to implement this solution in eventum. Could it be - somewhere a mistake in the code?

thanx

0 Answers

Please login to view replies.

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 177
Sifat

Sifat

Total Accepted Answers: 59
Toufiq

Toufiq

Total Accepted Answers: 42
Pavel

Pavel

Total Accepted Answers: 5
DH

Daniel Huedig

Total Accepted Answers: 2

100+

Templates

200,000+

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us