Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

fix(homepage): default design exit progress before measurement (RX-198)

Amruth Pillai78cbd033bec6
diff --git a/apps/web/src/features/homepage/design.tsx b/apps/web/src/features/homepage/design.tsx
index 835013d59..1d84b62d8 100644
--- a/apps/web/src/features/homepage/design.tsx
+++ b/apps/web/src/features/homepage/design.tsx
@@ -223,7 +223,7 @@ export function Design() {
<h2
id="design-title"
aria-label={`${t`${templateCount} free resume templates.`} ${t`Make any of them yours.`}`}
- className="pointer-events-none absolute inset-x-(--gutter) top-[10vh] bottom-[8vh] [transform:translateY(calc((1-var(--z))*30px))] text-center text-[8vw] leading-none font-normal text-balance opacity-[calc(clamp(0,(var(--z)-.18)/.1,1)*(1-clamp(0,(var(--out)-.6)/.06,1)))] will-change-[transform,opacity] min-[900px]:bottom-[5vh] min-[900px]:text-[clamp(36px,4vw,72px)]"
+ className="pointer-events-none absolute inset-x-(--gutter) top-[10vh] bottom-[8vh] [transform:translateY(calc((1-var(--z))*30px))] text-center text-[8vw] leading-none font-normal text-balance opacity-[calc(clamp(0,(var(--z)-.18)/.1,1)*(1-clamp(0,(var(--out,0)-.6)/.06,1)))] will-change-[transform,opacity] min-[900px]:bottom-[5vh] min-[900px]:text-[clamp(36px,4vw,72px)]"
>
<Link
ref={linkRef}
diff --git a/apps/web/src/features/homepage/landing.css b/apps/web/src/features/homepage/landing.css
index 7c3f707ee..260027dfc 100644
--- a/apps/web/src/features/homepage/landing.css
+++ b/apps/web/src/features/homepage/landing.css
@@ -177,6 +177,8 @@
.landing [data-scene] {
--p: 0;
+ /* Pinned scenes replace this with their exit progress once the engine measures them. */
+ --out: 0;
}
/*