alessiopaoletti Posted January 13, 2025 Posted January 13, 2025 Hi, I have 2 svgs and when I click I want it to switch from one to the other, but when it does, it also moves the figure, how can I make it stay in the same place? See the Pen yyBjOeJ?editors=1010 by alessio-paoletti (@alessio-paoletti) on CodePen.
Solution PointC Posted January 13, 2025 Solution Posted January 13, 2025 Morph will take on the position properties of a new target as well. You'll need to create your objects at the same position in your vector software. As with all things SVG, it comes down three things. 1. Artwork prep 2. Artwork prep 3. Artwork prep Your life really will be easier with any SVG animation if the extra time is taken in your vector app. Happy tweening. 2
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