joeworkman Posted September 25, 2020 Share Posted September 25, 2020 I am trying to setup a card flip animation using GSAP3. I have the basics working great. However, I am trying to also animate the `z` property of the wrapper in order to make it look like it lifts off the page. Buts its not working. Here is my CodePen... I was trying to replicate the example done here... See the Pen vjGxH?editors=0110 by rhernando (@rhernando) on CodePen See the Pen bGpZqEO by joeworkman (@joeworkman) on CodePen 1 Link to comment Share on other sites More sharing options...
PointC Posted September 25, 2020 Share Posted September 25, 2020 Hi @joeworkman I think you'll achieve the desired results by moving your perspective to the parent container. gsap.set(".quickflip", { transformStyle: "preserve-3d", transformPerspective: 1000 }); Happy tweening. 3 Link to comment Share on other sites More sharing options...
joeworkman Posted September 25, 2020 Author Share Posted September 25, 2020 Oh I feel so stupid now! How obvious... 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