mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
refactor(animation): update animation API (#19529)
This commit is contained in:
@ -10,11 +10,11 @@ export const iosEnterAnimation = (baseEl: HTMLElement): IonicAnimation => {
|
||||
const wrapperAnimation = createAnimation();
|
||||
|
||||
backdropAnimation
|
||||
.addElement(baseEl.querySelector('ion-backdrop'))
|
||||
.addElement(baseEl.querySelector('ion-backdrop')!)
|
||||
.fromTo('opacity', 0.01, 0.26);
|
||||
|
||||
wrapperAnimation
|
||||
.addElement(baseEl.querySelector('.picker-wrapper'))
|
||||
.addElement(baseEl.querySelector('.picker-wrapper')!)
|
||||
.fromTo('transform', 'translateY(100%)', 'translateY(0%)');
|
||||
|
||||
return baseAnimation
|
||||
|
@ -10,11 +10,11 @@ export const iosLeaveAnimation = (baseEl: HTMLElement): IonicAnimation => {
|
||||
const wrapperAnimation = createAnimation();
|
||||
|
||||
backdropAnimation
|
||||
.addElement(baseEl.querySelector('ion-backdrop'))
|
||||
.addElement(baseEl.querySelector('ion-backdrop')!)
|
||||
.fromTo('opacity', 0.26, 0.01);
|
||||
|
||||
wrapperAnimation
|
||||
.addElement(baseEl.querySelector('.picker-wrapper'))
|
||||
.addElement(baseEl.querySelector('.picker-wrapper')!)
|
||||
.fromTo('transform', 'translateY(0%)', 'translateY(100%)');
|
||||
|
||||
return baseAnimation
|
||||
|
Reference in New Issue
Block a user