scroll to sections with fullscreen slider addon
-
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> -
hey, yes with the fullscreen slider addon it works differently. Please take a look here:
http://laythemeforum.com/topic/947/scroll-to-anchors-with-fullscreen-slider-addon-back-to-top-button-doesn-t-work/2 -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login