Hello !
I would like to make the smooth scroll effect work with anchor ! The anchor is working but no way to have a the animate scroll effect.
<a class="js-scrollTo" href="#page-1">Page1</a>
<div id="page-1">
<!-- Content Page 1 -->
</div>
then i have add this in the <head> of custom css et js section :
<script>
$(document).ready(function() {
$('.js-scrollTo').on('click', function() {
var page = $(this).attr('href');
var speed = 750;
$('html, body').animate( { scrollTop: $(page).offset().top }, speed );
return false;
});
});
</script>