mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
fix(): add prefixed transform for older versions of chrome (#18128)
fixes #17729
This commit is contained in:
@ -168,7 +168,7 @@ export class Animator {
|
|||||||
if (clearProperyAfterTransition) {
|
if (clearProperyAfterTransition) {
|
||||||
// if this effect is a transform then clear the transform effect
|
// if this effect is a transform then clear the transform effect
|
||||||
// otherwise just clear the actual property
|
// otherwise just clear the actual property
|
||||||
this.afterClearStyles([ fx.trans ? 'transform' : prop]);
|
this.afterClearStyles(fx.trans ? ['transform', '-webkit-transform'] : [prop]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
@ -725,6 +725,7 @@ export class Animator {
|
|||||||
for (i = 0; i < elements.length; i++) {
|
for (i = 0; i < elements.length; i++) {
|
||||||
// ******** DOM WRITE ****************
|
// ******** DOM WRITE ****************
|
||||||
elements[i].style.setProperty('transform', finalTransform);
|
elements[i].style.setProperty('transform', finalTransform);
|
||||||
|
elements[i].style.setProperty('-webkit-transform', finalTransform);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user