DistortionPremium

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.

CSSCRTTerminal

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

Looking up a tape in a community video club's catalogue — the field and the results inside the screen — CRT Screen example 1

① Looking up a tape in a community video club's catalogue — the field and the results inside the screen

WhenOn the Ciné-Bobinette site, the Catalogue page shows an old set: in its amber screen, a “TITLE” field, five tapes with their shelf number and availability, and the number of titles found. The member types “night” and the list shrinks to three lines.
WhyThe video club takes its nostalgia all the way into its search tool. Since the lines do not block clicks, the field remains a real field: you click it, type in it, and the Tab key reaches it.
SettingsWrapper in position: absolute inside the beige casing, so --crts-w: 100% and --crts-h: 100% fill it; --crts-color: #ffb000, --crts-halo: rgba(255,176,0,.22), --crts-tint: rgba(255,176,0,.1), --crts-size: 13px. The casing, the field and the list filtering are written by the scene; in the capture it types the word letter by letter.
Darkroom timer in red — app of a community film photo lab — CRT Screen example 2

② Darkroom timer in red — app of a community film photo lab

WhenIn the Orlavène lab app, the “Developer” step shows 01:30 in large red digits in a small slab, above the Start button and next to the list of the four baths. One click and the seconds count down.
WhyIn a darkroom, only a red light may stay on near the paper: the dark red screen is not decoration, it is the constraint of the place. A fixed-size slab holds the digits without the layout moving.
Settings--crts-w: 224px, --crts-h: 114px, --crts-size: 44px, --crts-color: #ff3b30, --crts-halo: rgba(255,59,48,.28), --crts-tint: rgba(255,59,48,.14); role="timer" added on the slab. The countdown (one second per second) is written by the scene, which changes nothing but the digits.
Three camera traps of a nature park at night — a wall of control screens — CRT Screen example 3

③ Three camera traps of a nature park at night — a wall of control screens

WhenOn the monitoring board of the Sierra Albarde Reserve, three small screens show the latest infrared image from each camera: a puma, a bobcat, a ringtail. Hovering or touching a screen lights its halo and displays the matching sighting.
WhyThe lines and dark edges settle on a photo as they do on text: three thumbnails become three surveillance monitors, and the halo acts as a selection light without adding a border.
SettingsOne wrapper per camera, inside a real <button>: --crts-w: 100%, --crts-h: 118px, --crts-size: 10.5px, --crts-halo: rgba(0,255,0,.06) at rest then rgba(90,255,120,.75) for the chosen camera. The picture is a non-positioned <img> tag (it stays under the lines), tinted green by a filter from the scene. Real camera-trap photos, free of rights (public domain).

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" or role="timer" on .crts-screen.
  • Contrast: green #0f0 on 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.

Chrome 87+✓ Full (measured on Chromium 149)
Firefox 66+✓ Full (measured on Firefox 151)
Safari 14.1+✓ WebKit 26.5 engine measured, real Safari not verified
Edge 87+✓ Full (Chromium engine)
iOS Safari 14.5+✓ Not verified on a device
Android Chrome 87+✓ Not verified on a device (Chromium engine)

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):

index.html — structure
<div class="fx-0257-root">
  <div class="crts-screen">
    <span class="crts-text">&gt; READY_</span>
  </div>
</div>

One-time payment, no subscription — the code is yours forever

Customize

Options passed to the API or data-* attributes:

Option / propertyDefaultEffect
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

CRT Monitor Effect draws a complete monitor: an 8 px grey frame, inner padding, three lines of text whose light clearly dims every 4 seconds, and a height that follows the content. CRT Screen keeps only the tube: no frame, fixed width and height, elliptical sides, lines twice as fine (1 px instead of 2), an adjustable outer halo. It is a surface to fill rather than an object to place.
Because it is positioned. The lines are a 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.
A percentage height is computed from the wrapper, which by default only has a minimum height. Measured in a 240 px parent: the slab falls back to the height of its text, about 37 px. Give the wrapper a height (height: 240px, or position: absolute; inset: 0 in a positioned parent) and the percentage works. Width at 100% works without adding anything.