fix(nav): animation backdrop

This commit is contained in:
Manu Mtz.-Almeida
2018-08-07 21:54:15 +02:00
parent 48e2a4e2ca
commit 948d0839c9
6 changed files with 2 additions and 18 deletions

View File

@ -23,7 +23,6 @@ export interface Animation {
beforeClearStyles(propertyNames: string[]): Animation;
beforeAddRead(domReadFn: () => void): Animation;
beforeAddWrite(domWriteFn: () => void): Animation;
duringAddClass(className: string): Animation;
afterAddClass(className: string): Animation;
afterRemoveClass(className: string): Animation;
afterStyles(styles: { [property: string]: any; }): Animation;

View File

@ -248,15 +248,6 @@ export class Animator {
return this;
}
/**
* Sets a CSS class during the duration of the animation.
*/
duringAddClass(className: string): Animator {
this.beforeAddClass(className);
this.afterRemoveClass(className);
return this;
}
/**
* Set CSS inline styles to this animation's elements
* before the animation begins.
@ -817,6 +808,7 @@ export class Animator {
const elementClassList = el.classList;
// css classes to add before the animation
if (addClasses) {
for (const c of addClasses) {
// ******** DOM WRITE ****************