web2vid

Transparent GIF from a CSS animation

Turn a CSS or HTML animation into a transparent animated GIF for chats, emails, docs and README files, and avoid jagged edges.

Updated 2026-10-30

GIF works everywhere video doesn’t: in emails, chats, issue trackers and README files. web2vid can render any HTML animation straight to a transparent GIF.

How

  1. Give the page a transparent background: html, body { background: transparent }.
  2. In web2vid, open the HTML file and pick a small size: the Sticker (512 × 512) or Emoji (256 × 256) preset is a good start.
  3. Set Format to .gif, keep Transparent ticked, and render.

Why edges can look jagged

GIF transparency is on or off per pixel: a pixel is either fully visible or fully see-through. Soft shadows, glows and anti-aliased edges are half-transparent, so in a GIF they get rounded to one or the other and can look rough.

Ways to get clean edges:

Keep the file small