Kutalev Posted April 1, 2022 Posted April 1, 2022 Hello everyone! Could you, please, help me with a flip animation. I'm trying to transform a blue circle to a dynamic modal window appended to body. I guess what I made is ... a solution. But I'm sure there should be much cleaner and better way to do this) Black squares are some elements with unknown z-index or in different DOM nodes. See the Pen NWXaLRd by kutalev (@kutalev) on CodePen.
Solution OSUblake Posted April 1, 2022 Solution Posted April 1, 2022 Hi Kutalev, I wouldn't say there's a cleaner way. Appending an new element to the DOM is how most modals are done to make sure it is placed on top of everything. So I'm using from and to methods here. Just click anywhere. See the Pen rNpGXZq by GreenSock (@GreenSock) on CodePen. 4
Kutalev Posted April 1, 2022 Author Posted April 1, 2022 Ah! I guess I didn't understand at first how to use Flip correctly. Thank you! 1
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