Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,13 @@ const categories = getCategories();
.calculator-card {
animation: card-appear 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
opacity: 0;
/* Skip style/layout/paint for off-screen cards so the ~140 below the fold
don't gate the in-viewport LCP card's paint. Render-skipping only (content
stays in the DOM and is indexable); contain-intrinsic-size reserves an
approximate height and the `auto` keyword caches the real size after first
render so scrolling does not jump. */
content-visibility: auto;
contain-intrinsic-size: auto 240px;
}

/* After initial load, disable animation for instant filtering */
Expand Down
Loading