CRT Screen
A bare cathode-ray tube with no casing: a black slab with bulging sides, one-pixel scanlines, darkened corners and a phosphor halo around it. Whatever you put inside stays clickable.
Updated
This effect is part of Effect.Labs — 846 vanilla effects, some free, some premium. Distortion has 31 effects, including 5 free. Explore the category →
3 usage examples



How it works
.crts-screen is a 300 × 200 px black slab whose corners are rounded as ellipses (border-radius: 20px / 10px), so the sides look bulged. Two shadows give it its light: a diffuse glow inside (--crts-tint) and a 20 px halo outside (--crts-halo). Both take the hue of --crts-color by themselves: change that one variable to amber and the halo turns amber (checked in the three engines).
On top, two transparent layers cover the whole slab. ::before draws the scanlines: every other row of pixels darkened by 20%. ::after darkens the edges with a radial gradient. Both carry pointer-events: none: a field, a button or a link placed in the screen receives clicks as usual (button clicked through the lines in all three engines).
The .crts-text text takes the --crts-color colour, a 10 px glow of the same hue and a monospace font. Its opacity swings between 1 and 0.98 ten times a second: read at 0.980 at its lowest, it is a shimmer the eye barely guesses, not a blink. The slab is a flex box: what you put in it centres itself.
Accessibility
- Screen readers: the content is real text, read as written (tree read in Chromium 149: “> READY_”, signs included). The code declares no announcement region: if your script changes the message, add
aria-live="polite"orrole="timer"on.crts-screen. - Contrast: green
#0f0on black reaches 15.3:1. The lines only take 20% of the light off every other row, but very thin text (under 11 px) loses sharpness there; make it bigger rather than lighter. - Shimmer: a 2% change in opacity crosses no flashing threshold. It still goes away for visitors who have set their system to fewer animations; the screen itself looks the same.
- Keyboard and touch: the screen alone has nothing to activate. Elements you place in it keep their behaviour, focus included; their focus outline sits under the lines, so give it a light colour.
Browser compatibility
A 2.3 KB style sheet, no script and no image. The two layers are sized with the inset property (Chrome 87, Firefox 66, Safari 14.1 according to MDN data). Checked on 4 December 2026 in Chromium 149, Firefox 151 and WebKit 26.5: 300 × 200 px slab, 20 px / 10 px radii, click passed under the layers, two neighbouring screens, width brought down to 180 px in a narrow parent.
Before those versions, inset is ignored: the two layers have no size, so no lines and no dark edges. What remains is a rounded black slab, its halo and the glowing text, perfectly readable. The halo is tinted with color-mix() (Chrome 111, Firefox 113, Safari 16.2); on anything older it stays green unless you set --crts-halo yourself.
The code
HTML structure to paste into your page (the CSS + JS come with your purchase):
<div class="fx-0257-root">
<div class="crts-screen">
<span class="crts-text">> READY_</span>
</div>
</div>
One-time payment, no subscription — the code is yours forever
Customize
Options passed to the API or data-* attributes:
| Option / property | Default | Effect |
|---|---|---|
Content (HTML — inside .crts-screen) |
> READY_ |
A message in .crts-text, or anything else: an image, a form, several lines in a block. Only .crts-text gets the colour and the glow. |
--crts-w · --crts-h |
300px · 200px | Size of the slab. It never grows wider than its parent. 100% in height needs a wrapper that has a height of its own. |
--crts-color |
#0f0 | Hue of the text, of its glow and of the halo: #ffb000 for amber, #ff3b30 for red, #e8f4ff for a cold white. |
--crts-halo · --crts-tint |
--crts-color at 20% · at 10% |
Halo around the slab and inner glow. Left alone, they follow --crts-color. Give them a value for a stronger or fainter halo; very opaque, it works as an “on” light. |
--crts-size |
1.5rem | Type size of .crts-text. 44 px for timer digits, 13 px for a listing. |
--crts-page · --crts-root-h |
#0a0a0f · 300px | Colour and minimum height of the area around the slab. transparent and 0 to fit it inside a component. |
FAQ
position: absolute layer placed before the content: a child left in the flow goes under it, a child in position: absolute or relative goes over it. Measured on a white image: alternating rows 245 / 197 when it is in the flow, uniform when it is positioned. Size it with width: 100%; height: 100%; object-fit: cover, without positioning it.height: 240px, or position: absolute; inset: 0 in a positioned parent) and the percentage works. Width at 100% works without adding anything.