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:4567/topic/947/scroll-to-anchors-with-fullscreen-slider-addon-back-to-top-button-doesn-t-work/2 -
Ah - great thanks thats worked.
cheers
Toby
Try this to fix issues before you post:
Use the Search Feature. Maybe there is already a solution to your issue.
1. Update Lay Theme and all Lay Theme Addons
2. Disable all Plugins
3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
4. Now see if your problem solved itself
5. Go here, see if your problem is listed here:
Troubleshooting
When you post:
1. Post a link to where the problem is
2. If the problem is difficult to explain, post screenshots / link to a video to explain it