Skip to content

Commit

Permalink
make scrolling slower
Browse files Browse the repository at this point in the history
  • Loading branch information
axherrm committed Dec 2, 2023
1 parent 854e6ba commit 456fa46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/app.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
font-size: 2vh;
line-height: var(--row-height);
float: left;
width: 13vw;
width: 14vw;
margin: 0;
}
.capitalize::first-letter {
Expand Down
6 changes: 3 additions & 3 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ export class AppComponent {
scroll2ScaleUp(): void {
const timeline: gsap.core.Timeline = gsap.timeline({
scrollTrigger: {
start: 500,
start: 1200,
trigger: this.backgroundDiv.nativeElement,
end: "+=500",
end: "+=600",
// markers: true, // TODO remove
scrub: true,
pin: this.general.nativeElement
Expand All @@ -54,7 +54,7 @@ export class AppComponent {
scrollTrigger: {
start: 0,
trigger: this.backgroundDiv.nativeElement,
end: "+=500",
end: "+=1200",
// markers: true, // TODO remove
scrub: true,
pin: this.general.nativeElement
Expand Down

0 comments on commit 456fa46

Please sign in to comment.