JSPM

afterglow-crt

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q38699F
  • License MIT

A pure CSS CRT monitor visual effect with multiple presets (green, amber, office98, pvm).

Package Exports

  • afterglow-crt
  • afterglow-crt/crt.css

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (afterglow-crt) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

AFTERGLOW

A Pure CSS CRT Monitor Simulation

Afterglow is a visual experiment that recreates the look and behavior of real cathode ray tube monitors using only HTML, CSS and a small amount of JavaScript (maybe).

No canvas. No shaders. No WebGL.

Just the browser rendering engine pushed to its limits.

Ver em Português

Uma Simulação de Monitor CRT em CSS Puro

Afterglow é um experimento visual que recria a aparência e o comportamento de monitores de tubo de raios catódicos reais usando apenas HTML, CSS e uma pequena quantidade de JavaScript (talvez).

Sem canvas. Sem shaders. Sem WebGL.

Apenas o mecanismo de renderização do navegador levado ao seu limite.


Preview

Afterglow can be used to simulate different types of real screens:

  • Arcade cabinets
  • Consumer televisions (VHS era)
  • Sony PVM professional monitors
  • Old office PCs (early 2000s white screen)
  • Damaged CRTs
  • Haunted analog interference

The project is designed both as a retro aesthetic library and a study of analog video artifacts.

Ver em Português

O Afterglow pode ser usado para simular diferentes tipos de telas reais:

  • Gabinetes de fliperama
  • Televisores de consumo (era VHS)
  • Monitores profissionais Sony PVM
  • Computadores de escritório antigos (tela branca do início dos anos 2000)
  • Monitores CRT danificados
  • Interferência analógica fantasmagórica

O projeto foi concebido tanto como uma biblioteca estética retrô quanto como um estudo de artefatos de vídeo analógico.


Themes Included

Afterglow CRT Demo

Theme Description
crt-office98 Early 2000s PC monitor
crt-pvm Clean professional broadcast monitor
crt-green Inspired by monochrome phosphor computer terminals.
crt-amber Modeled after amber monochrome monitors from the 80s and early 90s.
Ver em Português
Tema Descrição
crt-office98 Monitor de PC do início dos anos 2000.
crt-pvm Monitor profissional de transmissão com design limpo.
crt-green Inspirado em terminais de computador monocromáticos com fósforo.
crt-amber Inspirado em monitores monocromáticos âmbar dos anos 80 e início dos anos 90.

Installation

npm install afterglow-crt

Import in your project:

import "afterglow-crt";

2. CDN

Add the stylesheet directly to your page:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/afterglow-crt/crt.css">

3. Direct Download

Download crt.css from the [GitHub Releases] page and include it:

<link rel="stylesheet" href="crt.css">
Ver em Português

1. NPM (recomendado)

npm install afterglow-crt

Importe no seu projeto:

import "afterglow-crt";

2. CDN

Adicione a folha de estilo diretamente à sua página:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/afterglow-crt/crt.css">

3. Download direto

Baixe o arquivo crt.css da página [GitHub Releases] e inclua-o:

<link rel="stylesheet" href="crt.css">

How It Works

Afterglow relies on a combination of:

  • layered repeating-linear-gradients
  • subpixel contrast tricks
  • blur-based phosphor bloom
  • brightness modulation
  • perspective warping
  • timed animation jitter

The goal is to mimic how an electron beam scans phosphor lines inside a real CRT display.

Ver em Português

O Afterglow utiliza uma combinação de:

  • gradientes lineares repetidos em camadas
  • truques de contraste subpixel
  • efeito de brilho do fósforo baseado em desfoque
  • modulação de brilho
  • distorção de perspectiva
  • oscilação de animação temporizada

O objetivo é simular como um feixe de elétrons varre as linhas de fósforo dentro de um monitor CRT real.


Customization

Each preset is controlled by CSS variables:

--crt-flicker-speed
--crt-warp-x
--crt-warp-y
--crt-warp-speed
--crt-breath-brightness
--crt-breath-speed
--crt-scanline-dark
--crt-scanline-light
--crt-scanline-opacity
--crt-scanline-size
--crt-beam-height
--crt-beam-blur
--crt-beam-speed
--crt-beam-opacity
--crt-ghost-opacity
--crt-ghost-blur
--crt-overscan

You can create your own monitor profile by overriding them:

body.my-monitor{
    --crt-scanline-dark:.25;
    --crt-warp-x:1.002;
    --crt-flicker-speed:5s;
}
Ver em Português

Cada predefinição é controlada por variáveis CSS:

--crt-flicker-speed
--crt-warp-x
--crt-warp-y
--crt-warp-speed
--crt-breath-brightness
--crt-breath-speed
--crt-scanline-dark
--crt-scanline-light
--crt-scanline-opacity
--crt-scanline-size
--crt-beam-height
--crt-beam-blur
--crt-beam-speed
--crt-beam-opacity
--crt-ghost-opacity
--crt-ghost-blur
--crt-overscan

Você pode criar seu próprio perfil de monitor sobrescrevendo-as:

body.meu-monitor{

--crt-scanline-dark:.25;

--crt-warp-x:1.002;

--crt-flicker-speed:5s;

}

Credits

Created by @HauntedCrusader

Font used: IBM Plex Mono Inspired by analog video technology and retro hardware preservation communities.

Ver em Português

Criado por @HauntedCrusader

Fonte utilizada: IBM Plex Mono Inspirado na tecnologia de vídeo analógica e nas comunidades de preservação de hardware retrô.


License

MIT License

You are free to use this in personal or commercial projects. Attribution is appreciated but not required.

Ver em Português

Licença MIT

Você pode usar este material livremente em projetos pessoais ou comerciais.

A atribuição é apreciada, mas não obrigatória.