mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
fix(animation): avoid partial keyframes (#19169)
* ensure custom props not part of final keyframes * fix clear * clean up
This commit is contained in:
@ -138,7 +138,12 @@ export const iosTransitionAnimation = (navEl: HTMLElement, opts: TransitionOptio
|
||||
|
||||
enteringToolBarBg
|
||||
.beforeClearStyles([OPACITY])
|
||||
.fromTo(OPACITY, 0.01, 1, true);
|
||||
.keyframes([
|
||||
{ offset: 0, opacity: 0.01 },
|
||||
{ offset: 0.99, opacity: 1 },
|
||||
{ offset: 1, opacity: 'var(--opacity)' }
|
||||
// TODO: Find a way to support clearing properties from Web Animations
|
||||
]);
|
||||
|
||||
// forward direction, entering page has a back button
|
||||
enteringBackButton.fromTo(OPACITY, 0.01, 1);
|
||||
|
Reference in New Issue
Block a user