emptygif
Language: English

All languages and frameworks

CSS data: URI CSS

A CSS snippet for CSS data: URI that answers requests for /pixel.gif with the empty GIF, decoded once at startup.

CSS data: URI CSS

File
styles.css
:root {
  --empty-gif: url("data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==");
}

/* e.g. a transparent click target or a background placeholder */
.spacer {
  background-image: var(--empty-gif);
}

We ran this snippet and compared the bytes it returned.

Official site: CSS data: URI