-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Modal): add pop from center/anchor animations #2489
feat(Modal): add pop from center/anchor animations #2489
Conversation
153d94f
to
23b868f
Compare
2db54e9
to
9acf136
Compare
ba0fb26
to
b4c0e00
Compare
opacity: [0, 1, 1], | ||
scale: [0.65, 0.65, 1], | ||
top: "50%", | ||
left: "50%", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the top
& left
needed here as they are defined already in the css?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, the css determines their first positioning and then I need to reflect it also here, otherwise its positioning is messed up
initial="exit" | ||
animate="enter" | ||
exit="exit" | ||
custom={anchorElementRef} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need a fallback in case it is undefined, so it won't mess up the animation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checked it, if it is undefined then the pop from center variation would be applied and it doesn't use it
if it is being used from custom
, then the pop from anchor variation would be applied, and it means that the anchor element ref isn't undefined
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool! Left 2 small questions
9b53547
into
feat/yossi/new-modal-building-blocks-7359960492
https://monday.monday.com/boards/3532714909/pulses/7586333722
https://monday.monday.com/boards/3532714909/pulses/7586334945