vacho Posted April 16, 2023 Share Posted April 16, 2023 Hello. I spent few hours to create something like this: I haven't been able to achieve the desired result yet. Could anyone offer their assistance? See the Pen yLRJLgx by watscho-the-bold (@watscho-the-bold) on CodePen Link to comment Share on other sites More sharing options...
Solution GreenSock Posted April 17, 2023 Solution Share Posted April 17, 2023 That looks to me like you could just pin the container <div> and then animate the rotation of its child and make the transformOrigin pretty low.  We don't normally do this kind of thing (it's well beyond the scope of help we can provide in these forums), but I was curious so I whipped together a very quick demo that might help get you moving in the right direction: See the Pen WNaxQLg?editors=0010 by GreenSock (@GreenSock) on CodePen  I hope that's useful. If you've got any GSAP-specific questions, we're happy to help with those. 1 Link to comment Share on other sites More sharing options...
akrdesign Posted April 17, 2023 Share Posted April 17, 2023 @vacho And here is the React.JS version 👇https://codesandbox.io/s/spin-on-scroll-example-x0utqn?file=/src/CircleAnimation.tsx 3 Link to comment Share on other sites More sharing options...
vacho Posted April 17, 2023 Author Share Posted April 17, 2023 A lot of thanks guys 🥰 🥰 I will try Link to comment Share on other sites More sharing options...
vacho Posted April 17, 2023 Author Share Posted April 17, 2023 Thanks guys. I did it.https://streamable.com/jlbbw9 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