Skip to content
Permalink
Browse files

fix(animation): fix header flicker on ios (#17422)

* add initial fix for flicker on ios

* fix(transition): do not remove opacity from outgoing element
  • Loading branch information...
liamdebeasi committed Mar 4, 2019
1 parent c641ae1 commit ad20bd6a70088767644ee21f84851e3619ebb0d5
Showing with 4 additions and 4 deletions.
  1. +4 −4 core/src/utils/transition/ios.transition.ts
@@ -167,9 +167,9 @@ export function iosTransitionAnimation(AnimationC: Animation, navEl: HTMLElement
rootTransition.add(leavingToolBar);

// fade out leaving toolbar items
leavingBackButton.fromTo(OPACITY, 0.99, 0, true);
leavingTitle.fromTo(OPACITY, 0.99, 0, true);
leavingToolBarItems.fromTo(OPACITY, 0.99, 0, true);
leavingBackButton.fromTo(OPACITY, 0.99, 0);
leavingTitle.fromTo(OPACITY, 0.99, 0);
leavingToolBarItems.fromTo(OPACITY, 0.99, 0);

if (backDirection) {
// leaving toolbar, back direction
@@ -179,7 +179,7 @@ export function iosTransitionAnimation(AnimationC: Animation, navEl: HTMLElement
// should just slide out, no fading out
leavingToolBarBg
.beforeClearStyles([OPACITY])
.fromTo(OPACITY, 1, 0.01, true);
.fromTo(OPACITY, 1, 0.01);

if (backButtonEl) {
const leavingBackBtnText = new AnimationC();

0 comments on commit ad20bd6

Please sign in to comment.
You can’t perform that action at this time.