Skip to content

Commit

Permalink
chore: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
waterplea committed Jan 30, 2025
1 parent a547e5e commit 376ec8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class Example {
protected onScroll({clientHeight, scrollTop}: HTMLElement): void {
const offset = Number.parseInt(this.stops[0], 10);
const top = Math.min(scrollTop, clientHeight - offset);
const transform = `translate3d(0, -${top}px, 0)`;
const transform = `translate3d(0, ${-top}px, 0)`;

this.button?.nativeElement.style.setProperty('transform', transform);
}
Expand Down

0 comments on commit 376ec8c

Please sign in to comment.