<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Crop Journey</title>
<style>
:root{
--ground:#F3EEE2;--card:#E6E3CE;--card2:#EBE8D7;--ink:#1E1F15;--deep:#0F100A;
--lift:#3D4128;--muted:#5A5E3B;--soft:#C9C8A6;--accent:#86914C;
--font:"Geist",system-ui,-apple-system,sans-serif;
}
@font-face{font-family:"Geist";src:url("/fonts-geist/Geist-Regular-latin.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:"Geist";src:url("/fonts-geist/Geist-Medium-latin.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap;}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:var(--ground);color:var(--ink);font-family:var(--font);-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
.cover{width:100%;height:100%;object-fit:cover;object-position:center;display:block;pointer-events:none;user-select:none}
.hint{position:fixed;left:50%;bottom:5vh;transform:translateX(-50%);margin:0;font-size:10px;font-weight:500;letter-spacing:.22em;text-transform:uppercase;color:var(--muted);pointer-events:none;z-index:5;white-space:nowrap}
@media (prefers-reduced-motion:reduce){ .hint{display:none} }
html,body{overflow:visible;height:auto;min-height:100%}
.pin{position:relative;height:280vh}
.stage{position:sticky;top:0;height:100vh;overflow:hidden;background:var(--card2)}
.shot{position:absolute;inset:0}
.shot img{width:140%;height:140%;object-fit:cover;object-position:20% 40%;display:block;will-change:transform}
.caption{position:absolute;left:8vw;bottom:14vh;margin:0;overflow:hidden;max-width:18em;padding:.55em .75em;background:rgb(15 16 10 / .4);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:var(--ground)}
.line{display:block;font-size:clamp(22px,3.2vw,42px);font-weight:400;letter-spacing:-0.03em;line-height:1.2;transform:translateY(110%)}
.progress{position:absolute;left:8vw;right:8vw;bottom:8vh;height:1px;background:rgb(243 238 226 / .28)}
.bar{display:block;height:100%;width:0;background:var(--ground);transform-origin:left}
</style>
</head>
<body>
<div class="pin">
<div class="stage">
<div class="shot"><img id="pic" src="/images/webp/look-walk.webp" alt=""></div>
<p class="caption"><span class="line" id="line">The walk holds, then the crop travels.</span></p>
<div class="progress"><span class="bar" id="bar"></span></div>
</div>
<p class="hint" style="position:absolute;left:50%;bottom:4vh;transform:translateX(-50%);margin:0;font-size:10px;font-weight:500;letter-spacing:.22em;text-transform:uppercase;color:var(--muted);">Scroll</p>
</div>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.13.0/dist/gsap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.13.0/dist/ScrollTrigger.min.js"></script>
<script>
(function(){
const reduce = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
const srcOf = (f) => "/images/webp/" + f;
const pic = document.getElementById("pic");
const line = document.getElementById("line");
const bar = document.getElementById("bar");
if (reduce){
pic.style.transform = "translate(-18%, -12%)";
line.style.transform = "none";
bar.style.width = "100%";
return;
}
gsap.registerPlugin(ScrollTrigger);
gsap.set(pic, {xPercent:0, yPercent:0});
gsap.set(line, {yPercent:110});
const tl = gsap.timeline({
scrollTrigger:{
trigger:".pin",
start:"top top",
end:"bottom bottom",
scrub:0.7
}
});
tl.to(pic, {xPercent:-22, yPercent:-14, ease:"none", duration:1}, 0)
.to(line, {yPercent:0, ease:"power3.out", duration:0.22}, 0.08)
.to(bar, {width:"100%", ease:"none", duration:1}, 0);
const picEl = pic;
if (picEl.complete) ScrollTrigger.refresh();
else picEl.addEventListener("load", () => ScrollTrigger.refresh());
})();
</script>
</body>
</html>
Build a single self-contained HTML file (vanilla CSS and JavaScript; GSAP 3.13+ from jsDelivr, plus ScrollTrigger or Flip only if required) for “Crop Journey”.
Scroll travels the crop across a still, while a single line of type rises.
Use the Olive & Moss palette: ground #F3EEE2, card #E6E3CE, ink #1E1F15, deep #0F100A, lift #3D4128, muted #5A5E3B, soft #C9C8A6, accent #86914C. Amber #FFA51F is not used as type. Images use object-fit: cover (or equivalent cover mapping in a shader) and must be undistorted at rest. Easing: expo.out / power3.inOut, no bounce or elastic. Respect prefers-reduced-motion. One file.