fix: make landing page footer reachable past scroll-snap (#1118)
scroll-snap-type: y mandatory (docs/index.html:28) forces the viewport to always rest on a snap point. The footer is far shorter than a viewport, so scrolling down past the last min-height:100vh section snaps back to that section's start and the footer can never settle in view. Switch the snap type to 'proximity' so sections still snap when the user is near them but the footer (and any sub-viewport tail) is freely reachable. Fixes #8 Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
521848da75
commit
5236a62de1
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@
|
|||
--radius: 8px;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; scroll-padding-top: 60px; }
|
||||
html { scroll-behavior: smooth; scroll-snap-type: y proximity; scroll-padding-top: 60px; }
|
||||
/* Each section is a full-viewport "page" with its content centered, so only
|
||||
one shows at a time and the snap is obvious. */
|
||||
.hero, section {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue