Share Posted March 7 Hello GSAP family! I have a very interesting problem with which I hope you can help me. I have 5 elements category-capsule__item that I want to first show in the center (one after the other in the same place) and then return them to their original position. You can see how I try to do this in my codepen: And after the animation completes, I want to give the elements a scale value when hovering over them. I'm trying to do it via position absolute and position: position: "absolute", xPercent:-50, yPercent:-50, left:"50%", top:"50%" And then I position the elements through the left: 0 property. But this is a "crutch". Because in this case, I will have to position each element with absolute positioning and there will obviously be problems during adaptivity (because eventually I will have to change the position of the elements and make them two in a row). I am sure that GSAP has some simple solution for my problem. Perhaps you could help me? I've been thinking about how to do this for two days now. And to be honest already desperate See the Pen KKxXVYL by ProjectDCL (@ProjectDCL) on CodePen Link to comment Share on other sites More sharing options...
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 account
Already have an account? Sign in here.Sign In Now