Tenclop Posted June 7, 2022 Share Posted June 7, 2022 Hey, When i click the a tags no matter the order the slide moves as its scrolling not to direct anchor, also it doesn't work backwards. I m new to gsap so i'd appreciate a lot, some advice or help on how to fix it. Also don't mind my scss, I did a quick ctrl-c, ctrl-v from my original project to codepen. Also if it's needed i can provide a link to github project. See the Pen poaOrom by Sihlanic (@Sihlanic) on CodePen Link to comment Share on other sites More sharing options...
Solution GreenSock Posted June 7, 2022 Solution Share Posted June 7, 2022 It looks like you weren't calculating the values properly. Did you know there's a helper function in the docs for this? See the Pen BaYOORq?editors=0010 by GreenSock (@GreenSock) on CodePen Is that more like what you wanted? 1 Link to comment Share on other sites More sharing options...
Tenclop Posted June 8, 2022 Author Share Posted June 8, 2022 I feel ashamed because I didn't take a better look at documentation, but thanks a lot, that's what i was looking for. Link to comment Share on other sites More sharing options...
Cassie Posted June 8, 2022 Share Posted June 8, 2022 Don't you worry! The helper functions are a little tucked away. Glad you got a solution. 1 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