Commit 58ea113
ux: reveal Buy me a coffin pill on scroll, not on page load
The pill was visible from the top of every page, which felt like it
appeared "from nowhere" and pulled attention away from the hero.
Now starts hidden (opacity 0, translateY -8px, pointer-events none),
fades in once the user has scrolled past ~180px. Scroll listener is
passive and unmounts cleanly.
aria-hidden + tabIndex track visibility so the link does not get
focused or read by assistive tech while it is hidden.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 2695437 commit 58ea113
2 files changed
Lines changed: 29 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | | - | |
| 578 | + | |
| 579 | + | |
579 | 580 | | |
580 | 581 | | |
581 | 582 | | |
| |||
595 | 596 | | |
596 | 597 | | |
597 | 598 | | |
598 | | - | |
| 599 | + | |
599 | 600 | | |
600 | | - | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
601 | 610 | | |
602 | 611 | | |
603 | 612 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
6 | 20 | | |
7 | 21 | | |
8 | 22 | | |
9 | 23 | | |
10 | 24 | | |
11 | 25 | | |
| 26 | + | |
| 27 | + | |
12 | 28 | | |
13 | | - | |
| 29 | + | |
14 | 30 | | |
15 | 31 | | |
16 | 32 | | |
| |||
0 commit comments