Mastering CSS scroll‑state() in React & Tailwind
What Is scroll‑state() and Why It Matters CSS scroll‑state() is a media query‑like feature that lets you apply styles based on the current scrolling activity of an element or the viewport. Unlike the traditional :hover or :focus pseudo‑classes, scroll‑state() can detect whether the user is actively scrolling, has stopped, or has scrolled to the top or bottom. This opens up new UI possibilities…
A product designer created a unique portfolio that completely changed expectations for a scroll experience. The site, hosted on Cloudflare Pages, showcases 3D visuals, motion, and interaction using Astro, React Three Fiber, React Islands, GSAP, Lenis, and Tailwind. The designer initially faced challenges with WebGL competing with the first paint, off-screen canvas rendering, stalled images, and a physics system that varied across devices.
The final product, <a href="nishar.xyz">nishar.xyz</a>, addresses these issues while maintaining the designer's creative vision and providing a smooth, 60fps experience.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to
This story
This is one outlet's version. Read the fullest account.