Urgent.News

What's breaking now, across hundreds of outlets.

Tech

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.

Every outlet that reported this, and when →

Read the original at dev.to →

Report a problem with this story

More in Tech

Avatar Thumbnail Processing Explained — Node.js Sharp, Fixed Sizes, Private Storage

Short answer: save the untouched avatar under a new versioned key, generate square 32, 64, 128, and 256 pixel variants with Sharp, keep every object private, and store those keys in the user record.

  • Node.js Sharp creates unique assetId for each avatar update.
  • Stores original image and four fixed size WebP versions (32.webp, 64.webp, 128.webp, 256.webp).
  • User record points to assetId and five keys, not permanent URL.

Dirty deals cloud mayoral race

The race for the eThekwini mayoral chain is fraught with tension following allegations of vote-buying and the sudden resignation of five councillors ahead of a critical coalition vote.

How to Specify Password Reset Email Content Before Sending Marketplace Reports

Combining account recovery with report delivery saves a message but couples an expiring security action to an unrelated attachment; keep the two jobs separate.

  • Password reset email must contain unique, time-bound reset link
  • Email should have explicit expiration time and clear usage instructions
  • Support contact option required for recovery failures

More from Thursday 26 November →