Loading effect…
Loading preview…
text · html · free
Words pull into focus, fade to static and bloom as you scroll.
npx znverse add focus-scroll-textLoads lenis, gsap from a CDN.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Focus Scroll</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&display=swap" rel="stylesheet">
<style>
:root {
--bg: #0a0a0c;
--ink: #f4f0e8;
--muted: #8a8680;
--cream: #ede8df;
--forest: #3b6947;
--wine: #721e30;
--gold: #c9a84c;
}
Words pull into focus, fade to static and bloom as you scroll.
Copy the files in src/ into a static page. Everything runs in the browser with no build step.
Originally published at https://github.com/Hank-D-Tank/settle-text.