How the Pixelate & Selective Blur Effect Works Technically in the Browser
Human reading relies on foveal visionβthe central two degrees of our visual field where cone density is highestβwhile peripheral vision detects layout structure. When an entire screen blurs at once, a user immediately blames their monitor or browser. However, when the rest of the page stays crystal clear and only the paragraph currently under the user's cursor or viewport center loses focus, the brain experiences a hilarious optical "blind spot" illusion, prompting the user to rub their eyes or clean their glasses!
Dynamic Proximity Calculation & CSS Gaussian Convolution
Our Selective Blur engine (`selective_blur.js`) combines real-time DOM bounding-box telemetry with hardware-accelerated CSS Filter Effects:
- Semantic Text Node Querying: On every `mousemove`, `touchmove`, and `scroll` event, the script queries readable content blocks (`p, h1, h2, h3, h4, h5, h6, li, td, blockquote, article, .content`) while explicitly excluding UI controls (`#effect-layer`, `#exit-btn`, `#punked-reveal`).
- Vertical Midpoint Distance Math: For each text block, `el.getBoundingClientRect()` returns the element's live viewport coordinates. The script computes the vertical center (`elCenter = rect.top + rect.height / 2`) and compares it against the user's pointer (`dist = Math.abs(mouseY - elCenter)`).
- Gaussian Filter & Selection Lock: Whenever `dist < rect.height * 0.8`, the script applies `filter: blur(4px)` with `transition: filter 0.3s ease` and `user-select: none` (preventing the user from highlighting the text to read it). The moment the user looks away to another paragraph, the previous paragraph sharpens (`filter: none` over `0.5s`) and the new target blurs!
Want Resolution Scaling Illusions Too? Use the dropdown above to select Slow Zoom (`slow_zoom`), which scales the viewport up by `0.1%` per second until text is comically oversized and pixelated, or Shrinking Page (`shrinking_page`), which shrinks the entire webpage down to 30% resolution in an endless loop!
Fun & Harmless Scenarios to Use Pixelate & Selective Blur
- The "Time to Clean Your Glasses" Joke: Send a long Wikipedia article or recipe link to a friend or family member who wears glasses. Watch them take their glasses off, wipe the lenses on their shirt, and put them back on as the blur follows their cursor down the page.
- Proofreading & Copy-Editing Banter: Ask a coworker or classmate to "quickly proofread Paragraph 3" of a shared reference page. Every time they hover over Paragraph 3 to read it, it blurs out while Paragraphs 1, 2, and 4 stay sharp!
- Subtle Slow-Burn Prank Chain: Combine Selective Blur β Slow Zoom β Ghost Cursor for a three-stage psychological prank where nothing looks overtly "broken" at first glance, yet reading becomes progressively more baffling.
How Recipients Can Exit the Effect Immediately
- Click the Unblurred Exit Button: The
β Exitbutton in the bottom-right corner is explicitly excluded from the blur filter (`!el.closest('#exit-btn')`) and remains sharp at all times. - Wait for the 30-Second Auto-Reveal: At 30 seconds, all CSS filters are cleared and the reveal card lets the visitor continue to the sharp, unpranked webpage.
- Close or Refresh the Browser Tab: Closing the tab immediately ends the script.
Frequently Asked Questions About Pixelate & Selective Blur
How does Selective Blur know which paragraph the user is reading?
The script tracks mousemove, touchmove, and scroll events, calculating the vertical distance between the active pointer Y-coordinate and the bounding-box center of each heading or paragraph element, applying filter: blur(4px) to the closest element.
Does Selective Blur work on mobile touchscreens without a mouse?
Yes! On mobile devices, `selective_blur.js` listens to both `touchmove` coordinates and window `scroll` events (automatically blurring the paragraph located in the reading zone at `window.innerHeight / 2`).