Anchor links with ScrollTo not working
-
Hello everyone ??
First, thanks for this wonderful plugin, we really appreciate the work here!
We are trying to use anchor links like explained here:
https://greensock.com/docs/v3/Plugins/ScrollToPluginWe used this code :
document.querySelectorAll(".anchor-links .elementor-column").forEach((btn, index) => { btn.addEventListener("click", () => { gsap.to(window, {duration: 1, scrollTo:{y:"#section1" + (index + 1), offsetY:70}}); }); });
When we click on the “links”, we have this error:
Failed to execute ‘scrollTo’ on ‘Window’: The provided value is not of type ‘ScrollToOptions’.Links are:
01. Expertise
02. Start your journey
03. PricingThanks guys for your help
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Anchor links with ScrollTo not working’ is closed to new replies.