diff --git a/src/app/app.component.html b/src/app/app.component.html index 0aee9d9..fd04c82 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -30,12 +30,12 @@
Axel Herrmann - wer ist das? diff --git a/src/app/app.component.scss b/src/app/app.component.scss index ba309dc..1562b3c 100644 --- a/src/app/app.component.scss +++ b/src/app/app.component.scss @@ -49,6 +49,11 @@ width: var(--icon-height); height: var(--icon-height); position: relative; + color: #262626; +} +// solution from: https://stackoverflow.com/a/53336754/19199839 +.svg-color-filter { + filter: brightness(0) saturate(100%) invert(12%) sepia(1%) saturate(2411%) hue-rotate(22deg) brightness(99%) contrast(93%); } .vr { background-color: var(--color-grey-dark-2); @@ -64,6 +69,7 @@ float: left; width: 14vw; margin: 0; + text-align: left; } .capitalize::first-letter { font-size: xx-large; @@ -75,6 +81,13 @@ margin-left: 20px; margin-right: 20px; } +.dot { + height: 20px; + width: 20px; + background-color: var(--color-grey-dark-1); + border-radius: 50%; + display: inline-block; +} #main-background { width: 100%; height: 100%; diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 65725a3..9b8fb62 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -29,24 +29,6 @@ export class AppComponent { this.animationsAtStart(); } this.scroll1fadeIn(); - this.scroll2ScaleUp(); - } - - scroll2ScaleUp(): void { - const timeline: gsap.core.Timeline = gsap.timeline({ - scrollTrigger: { - start: 1200, - trigger: this.backgroundDiv.nativeElement, - end: "+=600", - // markers: true, // TODO remove - scrub: true, - pin: this.general.nativeElement - } - }); - timeline.to(this.general.nativeElement, { - scale: 1, - duration: 1 - }); } scroll1fadeIn(): void { @@ -54,8 +36,8 @@ export class AppComponent { scrollTrigger: { start: 0, trigger: this.backgroundDiv.nativeElement, - end: "+=1200", - // markers: true, // TODO remove + end: "+=1500", + markers: true, // TODO remove scrub: true, pin: this.general.nativeElement } @@ -67,18 +49,13 @@ export class AppComponent { xPercent: 50, yPercent: 20, scale: 1.3, - duration: 1, + duration: 100, ease: "power2.out" }) .to(this.arrowDown.nativeElement, { opacity: 0, - duration: 0.5 + duration: 50 }, "start") - timeline.fromTo(this.general.nativeElement, { - scale: 0.9 - }, { - scale: 0.9 - }, "start") const generalChildren = this.general.nativeElement.children; for (let i = 0; i < generalChildren.length; i++) { @@ -86,8 +63,8 @@ export class AppComponent { timeline.from(textPart, { xPercent: 120, scale: 0.2, - duration: 0.6 - }, "<0.2"); + duration: 60 + }, 10 + i * 30); } const personalChildren = this.personal.nativeElement.children; @@ -96,10 +73,15 @@ export class AppComponent { timeline.from(personalPart, { xPercent: -120, scale: 0.2, - duration: 0.6 - }, 0.1 + i*0.2); + duration: 60 + }, 10 + i* 15); } + timeline.to(this.general.nativeElement, { + scale: 1, + duration: 60 + }); + // this.childrenAnimationFrom(this.general, timeline, { // xPercent: -120, // scale: 0.2,