Hi Armin
I'm struggling to make scroll to anchor points work - I'm working on a one page layout with the fullscreen addon.
I've allocated a row id to scroll to and set my HTML class id for example: identity
I then created a textelement selected the word clicked the link button and typed: #identity
now to scroll I get lost - I found this jquery example within the forum to paste into "lay options - Custom CSS & HTML see below
but should I be editing this in some way so it can respond to the identity id?
Thanks in advance
<script>
jQuery(document).on("click", "a[href*=#]", function(e){
e.preventDefault();
var targetId = jQuery(this).attr("href");
jQuery('html, body').animate({
scrollTop: jQuery(targetId).offset().top,
},
{
duration: 2000,
easing: "easeOutSine"
});
});
</script>