Skip to content
Permalink
Browse files

fix(): add prefixed transform for older versions of chrome (#18128)

fixes #17729
  • Loading branch information...
liamdebeasi committed Apr 25, 2019
1 parent ae0eccc commit 2457a23e955a82f875e7fd5bec9951213158562e
Showing with 2 additions and 1 deletion.
  1. +2 −1 core/src/utils/animation/animator.ts
@@ -168,7 +168,7 @@ export class Animator {
if (clearProperyAfterTransition) {
// if this effect is a transform then clear the transform effect
// otherwise just clear the actual property
this.afterClearStyles([ fx.trans ? 'transform' : prop]);
this.afterClearStyles(fx.trans ? ['transform', '-webkit-transform'] : [prop]);
}

return this;
@@ -725,6 +725,7 @@ export class Animator {
for (i = 0; i < elements.length; i++) {
// ******** DOM WRITE ****************
elements[i].style.setProperty('transform', finalTransform);
elements[i].style.setProperty('-webkit-transform', finalTransform);
}
}
}

0 comments on commit 2457a23

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