Optimize parallax

This commit is contained in:
Schmelczer András 2019-12-25 22:30:44 +01:00
parent 5a87d2db71
commit da9d0a1136
15 changed files with 135 additions and 207 deletions

View file

@ -9,6 +9,7 @@ export abstract class PageElement {
}
protected setElement(value: HTMLElement) {
this.getElement()?.parentElement?.replaceChild(value, this.getElement());
this.element = value;
}