mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(animation): add property conversions for CSS Animations (#20252)
fixes #20251
This commit is contained in:
@@ -43,8 +43,8 @@ export const iosEnterAnimation = (
|
||||
.beforeAddWrite(() => bodyEl.style.setProperty('background-color', 'black'))
|
||||
.addElement(presentingEl)
|
||||
.keyframes([
|
||||
{ offset: 0, transform: 'translateY(0px) scale(1)', 'border-radius': '0px' },
|
||||
{ offset: 1, transform: finalTransform, 'border-radius': '10px 10px 0 0' }
|
||||
{ offset: 0, transform: 'translateY(0px) scale(1)', borderRadius: '0px' },
|
||||
{ offset: 1, transform: finalTransform, borderRadius: '10px 10px 0 0' }
|
||||
]);
|
||||
|
||||
baseAnimation.addAnimation(presentingAnimation);
|
||||
|
||||
@@ -44,8 +44,8 @@ export const iosLeaveAnimation = (
|
||||
}
|
||||
})
|
||||
.keyframes([
|
||||
{ offset: 0, transform: `translateY(${modalTransform}) scale(${currentPresentingScale})`, 'border-radius': '10px 10px 0 0' },
|
||||
{ offset: 1, transform: 'translateY(0px) scale(1)', 'border-radius': '0px' }
|
||||
{ offset: 0, transform: `translateY(${modalTransform}) scale(${currentPresentingScale})`, borderRadius: '10px 10px 0 0' },
|
||||
{ offset: 1, transform: 'translateY(0px) scale(1)', borderRadius: '0px' }
|
||||
]);
|
||||
|
||||
baseAnimation.addAnimation(presentingAnimation);
|
||||
|
||||
Reference in New Issue
Block a user