AdiS Posted April 7, 2021 Share Posted April 7, 2021 Please can any one help me with Scrolltrigger + locomotive code, I want to draw the svg circles one by one when scroll in to view (circles are in the who we help section and one circle is rotating) it was working perfect without locomotive but when I added locomotive and also added the code instructed by gsap it stopped working there is something wrong. I would be very grateful if anyone can help. See the Pen BapwZKp by Ashah0007 (@Ashah0007) on CodePen Link to comment Share on other sites More sharing options...
Solution akapowl Posted April 7, 2021 Solution Share Posted April 7, 2021 Welcome to the forums, @AdiS Your scroller has the ID of scrollContainer, but in your ScrollTriggers as well as in the scrollerProxy you are addressing an element with a class of scrollContainer. I changed those to address the element with that ID and it resulted in this. Is this what you had in mind? See the Pen 60a6adaa6b84c70235db89bece411339 by akapowl (@akapowl) on CodePen 4 Link to comment Share on other sites More sharing options...
AdiS Posted April 7, 2021 Author Share Posted April 7, 2021 9 minutes ago, akapowl said: Welcome to the forums, @AdiS Your scroller has the ID of scrollContainer, but in your ScrollTriggers as well as in the scrollerProxy you are addressing an element with a class of scrollContainer. I changed those to address the element with that ID and it resulted in this. Is this what you had in mind? Thanks so much @akapowl it was my first post at gsap forum, I was really feeling helpless so decided to try here and I very very happy and thankful to you. 2 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