Share Posted March 10, 2021 Hello there, I developed my website using ScrollTrigger with Horizontall Scrool As you can see there is an ease scrolling (when reaching the end of the website it's necessary to scroll with more intensity respect of the beginning of the website). This is my code : const sections = gsap.utils.toArray(".panel"); let maxWidth = 0; let index = 0; const getMaxWidth = () => { maxWidth = 0; sections.forEach((section) => { maxWidth += section.offsetWidth; }); }; var masterScrollTrigger = gsap.to(sections, { x: () => `-${maxWidth - window.innerWidth}`, //ease: "Power0.inOut", ease:"Linear.easeNone", scrollTrigger: { trigger: ".container-scroll", pin: true, scrub: 1, end: () => `+=${maxWidth}`, invalidateOnRefresh: true } }); Question is: How do I remove the ease effect and make the scroll "linear" at the start of the website and at the end? Thanks Link to comment Share on other sites More sharing options...
Share Posted March 10, 2021 Hey Mauro. Your ease is invalid. It should just be ease: "none" as covered in the easing docs. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now