◉ Pulse
Yousuf-developer avatar
#45 today ▼ 1

Yousuf-developer/dither-blur-carousel

JavaScript Other NOASSERTION

WebGL dither carousel on a vertical helix. Fully tunable in the browser.

Last active 3 months ago Created Aug 5, 2026
Stars
16
Today
+4
Forks
3
Quality
90/100
Momentum
18

README

Fetched from GitHub on Nov 15, 2026, 9:17 AM UTC · README.md

View original on GitHub

Third-party content — Open Source Pulse is not the owner of this repository.

This README belongs to Yousuf-developer/dither-blur-carousel and its contributors. We fetch it directly from the project’s public GitHub repository and display it for reference only. All text, code, images and trademarks remain the property of their respective authors. Licensed under NOASSERTION. Copyright / takedown policy.

Dither Blur

A WebGL carousel where cards ride a vertical helix and dissolve into an ordered dither as they recede. Three separate dithers run at once — one keyed to screen position, one to hover, one to a cursor trail — over a progressive directional blur. Every parameter is live-tunable from a panel in the browser.

Built with Three.js and Next.js.

The carousel mid-scroll: one card resolved in the centre, the rest dissolving into dither and streak blur toward the top and bottom of the frame

Running it

npm install
npm run dev

Then open http://localhost:3000.

Press g to open the tuning panel. It starts hidden. Nothing in the effect is hard-coded — every number lives in gl/config.js and is wired to a slider, so the whole look can be dialled in the browser rather than by editing shaders.

Controls

scroll / drag turn the helix
hover a card rack focus — that card resolves, the rest recede
click a card bring it to the centre
move the cursor paint a dither trail
g toggle the tuning panel

How it works

Per frame:

cards → card buffer ─┐
                     │
cards → scene target ┼→ blur chain (4 levels) ─┐
                     │                         │
        cursor trail ┴─────────────────────────┴→ composite → screen

Cards (gl/shaders/card.js) aren't flat quads. The vertex shader bends each subdivided plane onto a cylinder, so a card's left and right edges recede in Z while its centre faces you. Position comes entirely from the shader — the CPU-side geometry is a flat plane at the origin — which is why frustum culling is off and picking doesn't use a raycaster.

The card buffer (gl/cardbuffer.js) re-renders the same geometry to an offscreen target with a flat fragment shader, packing card id, dim amount, hover amount and entry progress into R, G, B and A. It reuses the card vertex shader verbatim, so it inherits the helix position and bend for free. The red channel is read back a pixel at a time for hit testing; the rest feed the composite.

The blur chain (gl/post.js) is a separable directional blur run twice per level — along the streak axis at full spread, across it at a fraction — giving an elliptical kernel. A symmetric blur reads as "out of focus"; a stretched one reads as motion.

The trail (gl/trail.js) is a persistent ping-ponged buffer. Each frame is the last one decayed and smeared outward, plus a stroke painted along the segment the cursor actually covered — a segment, not a dot, so fast flicks stay continuous. It stores intensity in R and the velocity at paint time in GB, which is what lets the composite warp the image along the direction of travel.

The composite (gl/shaders/composite.js) does the rest: walks up the blur chain by depth, converts to display space, then applies the three dithers. Each has its own palette, tone curve, cell size and dissolve mode.

The entry

On load the helix is parked a few slots back and every card is absent — not faded, not drawn at all. Once the last texture is in, two clocks start: a timed tween glides the helix into place, and each card materializes as a dithered disc opening out from its own centre, in a running order reshuffled every time.

The reveal lives in the card pass rather than the composite, which is what keeps a card that hasn't arrived out of the blur chain — blend it toward the background instead and its light still smears into streaks across the frame. A cell is either the image at full strength or nothing, so it reads as the picture assembling rather than as an opacity ramp. The composite then prints its own dither over whatever has arrived but not yet settled, keyed to the same per-card progress, so a card doesn't snap straight to a clean photograph.

It plays once per load, so the panel has a replay button next to it.

The dither

Luminance is crushed to a few discrete steps against a Bayer threshold, then read off a three-stop ink → accent → paper ramp. mono blends that against the same quantization done per channel, which keeps the image's own hues.

Two things worth knowing before changing it:

  • Cell snapping matters. The composite is resampled at the cell centre so colour and threshold both hold constant across a cell and it fills flat. Without it each cell carries full-resolution detail wearing a dot pattern, which reads as noise laid over the image instead of the image being printed.
  • Setting ink and paper to the same colour turns the ramp into a band. Both ends of the tone range collapse together and only the midtones lift to the accent. That's the default here, and it's what keeps the pattern reading as grain rather than posterisation.

Layout

app/                 Next.js shell — one page, one canvas
components/          Carousel.jsx, mounts the GL scene and renders the labels
gl/
  config.js          every tunable, wired to the panel
  scene.js           renderer, cards, hover, the frame loop
  scroll.js          wheel/drag/touch into one number, with snap and tweens
  post.js            blur chain + composite pipeline
  cardbuffer.js      offscreen id/dim/hover/entry pass
  trail.js           cursor trail buffer
  gui.js             lil-gui panel
  color.js           hex to display-space vector
  shaders/           card, composite, trail, shared dither

Using your own images

Replace the files in public/, point IMAGES in gl/config.js at them, and update PROJECTS to match. Keep both arrays the same length or the labels drift out of step with the cards.

Please do replace them — see below.

Credits and licensing

Code is MIT, © Yousuf Soomro.

The images in public/ are not mine and are not covered by that license. They're placeholders pulled from Behance while building this. If you made one and want it credited or taken down, open an issue — happy to do either. If you're forking this, swap them for something you have the rights to.

Full details in CREDITS.md.

Rendered by GitHub from the repository’s README. Scroll to read the full file.
First trending

Aug 6, 2026

first spotted on the list

Best rank

#17

highest position reached

Appearances

2

times on the trending list

Quality score

90

out of 100

Momentum

18

trend strength indicator

Star velocity

0.16

stars per day since creation

Activity — last 60 days

daily counts, collected every 6 hours
  • Stars
  • Forks
  • Merged PRs
  • Issues
  • Closed issues

Collecting activity data since launch — check back in a few days.

Star history

total stars per snapshot
11121314151617Yousuf-developer/dither-blur-carousel · Aug 6, 8 AM UTC: 12 starsYousuf-developer/dither-blur-carousel · Aug 6, 2 PM UTC: 16 stars8:42 AM11:32 AM2:21 PM

Rank history

position on trending · lower is better
#1#15#20#25#30#35#40#45Aug 6, 8 AM UTC: rank #17Aug 6, 2 PM UTC: rank #458:42 AM11:32 AM2:21 PM

3D card for your website

Live HTML card with a glass surface and pointer tilt. Paste the iframe on any website.

<iframe src="https://www.notionpulse.cc/embed/Yousuf-developer/dither-blur-carousel" width="420" height="240" style="border:0;max-width:100%;background:transparent" loading="lazy" title="Yousuf-developer/dither-blur-carousel — trending on Open Source Pulse"></iframe>

Stars badge

Show current stars in your README or profile. Auto-updates every 6 hours.

Yousuf-developer/dither-blur-carousel stars badge
Markdown
[![Yousuf-developer/dither-blur-carousel](https://www.notionpulse.cc/api/badge/Yousuf-developer/dither-blur-carousel.svg)](https://www.notionpulse.cc/repo/Yousuf-developer/dither-blur-carousel)
HTML
<a href="https://www.notionpulse.cc/repo/Yousuf-developer/dither-blur-carousel"><img src="https://www.notionpulse.cc/api/badge/Yousuf-developer/dither-blur-carousel.svg" alt="Yousuf-developer/dither-blur-carousel stars badge" /></a>

Repository of the Day

#17 Repository of the Day

Repository of the Week

#17 Repository of the Week

Repository of the Month

#17 Repository of the Month