Screensavers were initially developed to prevent burn-in on CRT and plasma monitors by displaying moving images during periods of inactivity. Modern screensavers serve mainly for entertainment, displaying whimsical designs and animations, and can also activate background tasks like virus scans. The first screensaver was created for the IBM PC in 1983, and their design has evolved with advancements in graphics technology.