Guest Posted September 26, 2020 Share Posted September 26, 2020 hey ,i try to move a beg box and pin a sub boxes in the same position like this animation in :https://www.ecwid.com/?fbclid=IwAR2ygAek1LtYvPiQbq2x8P9vOfmzGO4zKM8sQRNVySt29cSApJB2O71JtaY can any one help me ? See the Pen LYNarpr by leen-alfalah (@leen-alfalah) on CodePen Link to comment Share on other sites More sharing options...
Richard1604 Posted September 26, 2020 Share Posted September 26, 2020 Hello leenal, welcome to the forum. I’m sure that you will find it helpful. there are plenty of experts who know more than me and thats a very interesting example that you raise. i notice that you are using css transform and scroll trigger so I would be inclined to drop the css transform and do it all in green sock. I would also be inclined to make things simple and build an animation without using scroll Trigger as a starting point. the basic essence seems to be a simple rotation of a complex div about an external pivot point. Perhaps someone might have an example that they prepared earlier. Link to comment Share on other sites More sharing options...
Richard1604 Posted September 26, 2020 Share Posted September 26, 2020 here's an example of rotating about an origin not at the center. 1 Link to comment Share on other sites More sharing options...
ZachSaucier Posted September 26, 2020 Share Posted September 26, 2020 Using an offset transformOrigin is the way to do this sort of thing. We highly recommend using the rotation property instead of passing in matrixes. You actually don't need pinning for this effect at all, the page you link just uses transforms. Link to comment Share on other sites More sharing options...
Solution Visual-Q Posted September 27, 2020 Solution Share Posted September 27, 2020 I quite like that effect from the site you showed: https://www.ecwid.com/?fbclid=IwAR2ygAek1LtYvPiQbq2x8P9vOfmzGO4zKM8sQRNVySt29cSApJB2O71JtaY So I figured it was a good excuse to practice my ScrollTrigger and transform skills. Kind of finicky working out the css, there's a few different ways you coudl approach that. This seems to work pretty well. See the Pen RwadBgG by Visual-Q (@Visual-Q) on CodePen 4 Link to comment Share on other sites More sharing options...
Guest Posted February 21, 2021 Share Posted February 21, 2021 Oh, thank you all for help me i don't know that you are replaying to me question .. thankyou @Visual-Q @ZachSaucier @Richard1604 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