<screen-saver>
A vanilla JavaScript web component that displays retro screen saver effects after idle timeout. Bring back the nostalgia!
Features
- Zero dependencies - pure vanilla JavaScript
- Three built-in effects: bounce3d, matrix, ascii-glitch
- Automatic idle detection with configurable timeout
- Custom effect registration API
- Full CSS custom property support
- Respects prefers-reduced-motion
- TypeScript definitions included
Quick Start
Installation
npm
CDN
ES Module
Available Effects
bounce3d
Classic bouncing 3D extruded text with color cycling on edge bounces. Features perspective rotation and layered text shadows.
matrix
Matrix-style falling character rain with Japanese katakana and ASCII. Your text glows prominently in the center.
ascii-glitch
Glitchy ASCII effect with random character corruption, chromatic aberration layers, and flicker effects.