How the Cracked Screen Illusion Works Technically in the Browser
A convincing cracked-glass prank depends on two ingredients: timing and resolution-independent geometry. If a static JPEG image of broken glass is stretched across a modern 4K desktop monitor or high-DPI Retina smartphone display, compression artifacts immediately give the joke away. To solve this, Punked.co's Cracked Screen effect (`screen_crack.js`) renders a multi-layered Scalable Vector Graphics (<svg>) fracture map directly over the live DOM.
When the recipient opens the link, the script intentionally waits between 3,000 and 5,000 milliseconds before firing. This short delay allows the visitor to start reading or scrolling normally so that when the fracture appears, it feels like a sudden physical eventโespecially on mobile devices where the user's thumb is actively pressing the glass.
Three-Tier Fracture Vectors & Light Refraction
Real tempered and aluminosilicate glass fractures radially from an epicenter, followed by concentric stress rings and microscopic branch splinters. Our SVG viewport (`viewBox="0 0 1920 1080"` with `preserveAspectRatio="none"`) models this physical behavior across four distinct compositing layers:
- Impact Epicenter & Compression Rings: Two concentric
<circle>elements at coordinates(720, 400)simulate the crushed glass point of impact using translucent white fills and strokes. - Primary Radial Fissures: Eight thick
<path>vectors (`stroke-width="2.5"`, `rgba(255,255,255,0.5)`) radiate outward toward all four edges of the viewport. - Secondary & Tertiary Micro-Cracks: Seventeen finer offshoot paths (`stroke-width="0.8"` to `1.5`) branch off the primary vertices at acute angles, mimicking internal glass tension.
- Refractive Glass Shards & Impact Flash: Triangular closed polygons filled with `rgba(255,255,255,0.03)` and a radial dark vignette simulate light bending across tilted glass facets, while a 50ms white flash div (`opacity: 0.7` fading to `0`) tricks the eye into perceiving a physical strike.
Why the Page Still Works Underneath: Because the entire fracture layer uses pointer-events: none and stays fixed at z-index: 9998, the webpage underneath remains 100% scrollable while the crack stays locked to the "physical" screen coordinates!
Fun & Harmless Scenarios to Use the Cracked Screen Prank
Because the crack stays stationary while the webpage content scrolls behind it, the optical illusion is extraordinarily convincing:
- Smartphone Group Chats: Send a Cracked Screen link in a WhatsApp or iMessage group chat. When a friend taps the link and scrolls with their thumb, the crack stays fixed to their phone's screen while the article moves underneathโmaking it look exactly like a hairline fracture in their screen protector.
- New Monitor Unboxing Joke: When a friend or roommate sets up a brand-new gaming monitor and asks for a good test page, send them a link to a clean Wikipedia or review page with Cracked Screen enabled.
- Prank Chain Combo: Combine Shake Screen (Earthquake) as Effect #1 and Cracked Screen as Effect #2 in the Prank Lab so the screen violently vibrates first and then "shatters" 15 seconds later!
How Recipients Can Exit the Cracked Screen Effect
We design every visual effect on Punked.co to be 100% harmless and easy to dismiss:
- Use the Bottom-Right Exit Button: Clicking the
โ Exitbutton in the lower-right corner immediately removes the SVG crack overlay and displays the reveal card. - Automatic 30-Second Reveal: After 30 seconds, the prank automatically concludes and offers a one-click button to continue to the original website unpranked.
- Close or Refresh the Tab: The SVG exists purely in temporary browser DOM memoryโclosing the tab removes it instantly.
Frequently Asked Questions About Cracked Screen
Can a browser prank actually damage my screen or pixels?
No. The Cracked Screen effect is a purely graphical SVG vector drawing rendered inside the webpage tab. It cannot physically harm LCD, OLED, or LED panels.
Why does the crack stay still when I scroll the page?
The SVG container is styled with position: fixed relative to the browser viewport while the webpage scrolls inside the underlying frame, creating the illusion that the physical glass is cracked.