Quickly navigate through the dashboard with your keyboard using the command menu.
A flowing statement paragraph whose words sit faint and out of focus until scroll scrubs them sharp one after another, while the whole block levels out from a slight tilt. Built with GSAP ScrollTrigger; respects reduced-motion.
Scroll Blur Reveal is a statement paragraph that starts faint and out of focus, then scrubs sharp one word at a time as you scroll, while the whole block quietly levels out from a slight tilt. It feels like a thought pulling itself into focus in front of you. Reach for it on manifesto sections, about-page intros, or any single passage you want a reader to slow down and actually take in.
This gem is a paragraph plus a small GSAP script — no build step.
index.html, assets/style.css, assets/script.js, assets/byq-brand.css, assets/gem-frame.css, and the assets/medias/ folder into one directory.index.html in any modern browser and scroll.The assets/medias/ folder ships empty here — this effect is pure type, so there are no images to carry along. The demo links assets/byq-brand.css, which supplies the BYQ brand tokens (colors, fonts, radii); keep it on the page so tokens like --byq-fg and --byq-accent-lime resolve. Per gem.json, this gem depends on GSAP 3.13 with the ScrollTrigger plugin, both loaded from the jsDelivr CDN by the two <script> tags at the bottom of index.html.
The entire effect lives inside one namespaced <section>, wrapping a single paragraph. That's it — the script builds the rest.
<section class="byq-gem byq-gem--scroll-blur-reveal-01">
<p class="byq-gem--scroll-blur-reveal-01__text">
A long time ago, in a browser tab far, far away… It is a period
of static pages. Rebel pixels, striking from a hidden stylesheet, have
won their first victory against the empire of the ordinary. During the
battle, a lone paragraph stole the plans to an ultimate weapon — a
scroll with enough power to pull an entire thought <em>into focus</em>.
Pursued by sinister pop-ups, the words race down the page, carrying the
one force that can restore <em>attention</em> to the galaxy…
</p>
</section>The only markup that matters is .byq-gem--scroll-blur-reveal-01__text and the two <em> accents. You write plain, readable prose — no per-word spans by hand. At load, the script splits the paragraph into word spans, and it recurses into the <em> elements so their accent color survives the split.
Every selector is prefixed with .byq-gem--scroll-blur-reveal-01 so nothing leaks into the rest of your page. The root just centers the block and sets the type.
.byq-gem--scroll-blur-reveal-01 {
display: flex;
justify-content: center;
padding-inline: 6vw;
color: var(--byq-fg);
font-family: var(--byq-font-sans);
}
.byq-gem--scroll-blur-reveal-01__text {
max-width: 30ch;
font-family: var(--byq-font-display);
font-weight: 400;
font-size: clamp(1.75rem, 1rem + 2.8vw, 3.4rem);
line-height: 1.22;
letter-spacing: -0.01em;
will-change: transform;
}The max-width: 30ch keeps the passage a dramatic column instead of a wall of text, and the clamp() font size scales it fluidly from phone to desktop. will-change: transform warns the browser that the block will animate, so the tilt scrub stays smooth.
The accent <em> is kept as a real element precisely so it survives the word split, and it borrows a brand token for its pop of color.
.byq-gem--scroll-blur-reveal-01__text em {
font-style: normal;
color: var(--byq-accent-lime);
}
.byq-gem--scroll-blur-reveal-01__word {
display: inline-block;
will-change: opacity, filter, transform;
}__word is the class the script stamps onto every word span. display: inline-block gives each word its own box so it can carry its own transform, opacity, and filter — you can't blur or lift a bare run of inline text on its own.
The script splits the words, holds them faint and blurred, then scrubs each one sharp on a stagger as the paragraph moves through the viewport. It uses GSAP with the ScrollTrigger plugin.
First it waits for the DOM, grabs the gem root, bails safely if GSAP isn't present, and registers the plugin.
window.addEventListener("DOMContentLoaded", () => {
const root = document.querySelector(".byq-gem--scroll-blur-reveal-01");
if (!root || typeof gsap === "undefined" || typeof ScrollTrigger === "undefined") return;
gsap.registerPlugin(ScrollTrigger);Next, wrapWords walks the paragraph's child nodes. For text nodes it splits on whitespace and wraps each word in a __word span; for element nodes (the <em>) it recurses, so accents stay styled and still become animatable words.
const wrapWords = (el) => {
const words = [];
Array.from(el.childNodes).forEach((node) => {
if (node.nodeType === Node.ELEMENT_NODE) {
words.push(...wrapWords(node));
return;
}
if (node.nodeType !== Node.TEXT_NODE) return;
const frag = document.createDocumentFragment();
node.textContent.split(/(\s+)/).forEach((piece) => {
if (!piece) return;
if (/^\s+$/.test(piece)) {
frag.appendChild(document.createTextNode(" "));
return;
}
const span = document.createElement("span");
span.className = `${NS}__word`;
span.textContent = piece;
frag.appendChild(span);
words.push(span);
});
el.replaceChild(frag, node);
});
return words;
};Before any animation, it honors reduced-motion. Because the dimmed start state is applied only in JS, readers who opt out (and anyone without JS) get the paragraph fully legible and static.
if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
gsap.set(words, { opacity: 0.12, filter: "blur(10px)", y: "0.3em" });
gsap.set(text, { transformOrigin: "0% 50%", rotate: 2.5 });The first ScrollTrigger levels the block out: it eases rotate from the 2.5 degrees set above back to 0 over the block's entrance, tied to scroll with scrub: 0.6 so it tracks your scroll position with a touch of smoothing.
gsap.to(text, {
rotate: 0,
ease: "none",
scrollTrigger: {
trigger: text,
start: "top bottom",
end: "top 40%",
scrub: 0.6,
},
});The second is a scrubbed timeline that reveals the words. Each one lifts (y: 0), brightens (opacity: 1), and sharpens (blur(0px)) on a stagger: 0.16, so the sentence comes into focus left to right as you scroll from top 92% to bottom 85% — finishing before the paragraph leaves the reading zone.
gsap
.timeline({
scrollTrigger: {
trigger: text,
start: "top 92%",
end: "bottom 85%",
scrub: 0.6,
},
})
.to(words, {
opacity: 1,
filter: "blur(0px)",
y: 0,
duration: 1,
ease: "power1.out",
stagger: 0.16,
});.byq-gem--scroll-blur-reveal-01__text. Wrap any word you want to pop in <em> — it inherits the accent color automatically.<em> uses var(--byq-accent-lime). Change that token (e.g. to --byq-accent-solar) to re-tint the highlighted words.gsap.set(words, …) call, raise blur(10px) for a hazier start or lower opacity: 0.12 to hold the words darker before they resolve.stagger: 0.16 sets how far apart words sharpen — smaller feels faster and more uniform, larger feels more one-by-one.rotate: 2.5 (paired with transformOrigin: "0% 50%") is the lean the block straightens out of. Bump it for a stronger tip, or set it to 0 to drop the tilt entirely.max-width: 30ch controls line length; the clamp(1.75rem, 1rem + 2.8vw, 3.4rem) font size sets the floor, growth, and ceiling.scrub: 0.6 on both triggers adds smoothing lag — set it to true to lock the animation exactly to the scrollbar.