jdillon Posted July 21, 2020 Share Posted July 21, 2020 I've been experimenting with the morphsvg plugin on codepen (also new to gsap). In the pen, if you click on the plus the shape morphs from a cirlce path to a rounded rectangle shape. The transition looks a little wonky and I'm not sure why. I'd like it to transition from the bottom center of the circle into the rounded rectangle shape, is there a way to achieve this, or is there a better approach to this? See the Pen NWxBmwx by jdillon (@jdillon) on CodePen Link to comment Share on other sites More sharing options...
PointC Posted July 21, 2020 Share Posted July 21, 2020 Hi @jdillon Welcome to the forum. I'm not sure a morph is really needed here. I'd probably just animate the height of the rectangle. Maybe something like this. See the Pen 4e3584624979c40c5351536d8aeb62fc by PointC (@PointC) on CodePen Happy tweening and welcome aboard. 4 Link to comment Share on other sites More sharing options...
jdillon Posted July 21, 2020 Author Share Posted July 21, 2020 Nice and simple - I look forward to gaining more experience with gsap - thank you sir! 2 Link to comment Share on other sites More sharing options...
PointC Posted July 21, 2020 Share Posted July 21, 2020 Happy to help. That's how we roll in the GreenSock neighborhood. Let us know if you have more GSAP related questions. If you haven't yet, check out the learning section. Lots of good stuff in there. https://greensock.com/learning/ 3 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