INTERACTION_075CSS
Reading Progress Highlight
A thin progress rule tracks how far the reader has moved.
Copy / LightView
List items slide in with their markers drawing first. Each row at 0 opacity, 12px right, marker scaled to 0 before the trigger; sliding rows into place and scaling markers to 1 just ahead of the text once entry into view.
/* Animated Bullet Points — List items slide in with their markers drawing first. */
.animated-bullet-points {
--dur: 440ms;
--ease: cubic-bezier(0.22, 1, 0.36, 1);
--stagger: 70ms;
will-change: transform, opacity;
}
.animated-bullet-points > * {
opacity: 0;
transform: translateY(14px);
animation: animated-bullet-points-in var(--dur) var(--ease) forwards;
animation-delay: calc(var(--i, 0) * var(--stagger));
}
/* each row at 0 opacity, 12px right, marker scaled to 0 -> sliding rows into place and scaling markers to 1 just ahead of the text */
@keyframes animated-bullet-points-in {
to {
opacity: 1;
transform: none;
filter: none;
}
}
@media (prefers-reduced-motion: reduce) {
.animated-bullet-points > * {
opacity: 1;
transform: none;
animation: none;
}
}import { useEffect, useRef } from "react";
/** Animated Bullet Points — trigger: entry into view */
export function AnimatedBulletPoints({ children }: { children: React.ReactNode }) {
const ref = useRef<HTMLDivElement>(null);
useEffect(() => {
const el = ref.current;
if (!el) return;
if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
el.dataset["state"] = "in";
return;
}
const io = new IntersectionObserver(
([entry]) => {
if (entry?.isIntersecting) {
el.dataset["state"] = "in";
io.unobserve(el);
}
},
{ threshold: 0.2 },
);
io.observe(el);
return () => io.disconnect();
}, []);
return (
<div ref={ref} className="animated-bullet-points" data-state="out">
{children}
</div>
);
}A thin progress rule tracks how far the reader has moved.
Key terms in a paragraph brighten after the copy settles.
Content blocks appear in stages as the reader advances.
Sentences brighten in turn so attention moves down the block.