Change BaseModal animation to scale-based animation
#1026
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Self Checklist
[ ] [Component] I wrote a unit test about the implementation.[ ] [Component] I wrote a storybook document about the implementation.[ ] [Component] I tested the implementation in various browsers.Windows: Chrome, Edge, (Optional) FirefoxmacOS: Chrome, Edge, Safari, (Optional) Firefox[ ] [New Component] I added my username to the correct directory in theCODEOWNERSfile.Related Issue
None.
Summary
BaseModal)에 사용되는 appear 애니메이션을 애플리케이션의 사용성을 저해하지 않는 수준으로 개선합니다.Details
As-is
-122px라는 수치 또한 모호한 면이 있습니다. 세로로 긴 화면에서는 화면 상단에 갑자기 모달이 나타나서 내려오는 모습이 되고,-100%와 같이 percentage 값으로 개선하여도 화면 크기에 따라 애니메이션이 너무 빠르거나 너무 느리게 느껴질 수 있습니다.To-be
opacity변화와 미세한scale조정 (95% → 100%)을 적용해 보았습니다.TransitionDuration.M)이며, timing function 또한 Bezier에서 기존에 사용하던cubic-bezier(.3,0,0,1)을 그대로 사용하였습니다.Kapture.2022-11-15.at.10.45.48.mp4
Breaking change or not (Yes/No)
No.
References