Skip to content

Commit 6544af1

Browse files
Hayk Arzumanyanclaude
andauthored
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 arcahyadi#8 Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent d232b2c commit 6544af1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
--radius: 8px;
2626
}
2727
* { box-sizing: border-box; }
28-
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; scroll-padding-top: 60px; }
28+
html { scroll-behavior: smooth; scroll-snap-type: y proximity; scroll-padding-top: 60px; }
2929
/* Each section is a full-viewport "page" with its content centered, so only
3030
one shows at a time and the snap is obvious. */
3131
.hero, section {

0 commit comments

Comments
 (0)