A GIF with a transparent background lets your email's color or image show behind the digits, so the countdown looks like part of the design instead of a box stuck on top. There's one limit worth knowing before you copy the code: in a GIF, every pixel is either opaque or invisible, with nothing in between.
Transparent countdown GIF for email
A transparent GIF lets your email's background show behind the digits, but it supports only one transparent color: every pixel is either opaque or invisible. The smoothed edges of the digits stay opaque and show on backgrounds that contrast little with them. Turn on transparency in the Blocks, Flat, Minimal, Rounded, Gradient, Flap or Serif styles.
Make your own
The generator is already set up for this page. Change what you need and press Create timer.
Animated GIF. Recalculated every time the email is opened.
How transparency works in a GIF
A GIF stores its colors in a palette of at most 256. The GIF89a specification lets the file mark one of those colors as transparent, and pixels of that color aren't painted. Everything else shows at full strength.
There's no partial transparency. A soft shadow or a glow that fades into the background can't be stored in a GIF: each pixel has to be either fully visible or not shown at all.
The edges of the digits
Digits and labels are drawn with smoothed edges. On an opaque background, the edge blends the digit color with the background color and the letter looks clean. In a transparent GIF, the engine doesn't know what color your email is, so the edges have to be blended with some color at render time.
Our engine draws on a magenta key color and then makes that exact color transparent. Edge pixels are a mix of the digit and the magenta, not pure magenta, so they stay opaque with a pink or purple tint. We checked this by rendering GIFs with the engine and placing them on white, black and blue backgrounds:
- With large dark digits on a light email, the edge is a thin line you barely notice.
- On the labels ("DAYS", "HOURS") it shows more, because the letters are small and mostly edge.
- If the digits are close to the background color (dark on a dark email, white on a white one), all you can make out is the colored outline.
To pick a digit color, think about the exact background the timer will sit on. Dark digits on a light email, white digits on a dark one, and labels with enough contrast, because they're the first thing to break down.
If your email has a single solid background color, there's a cleaner option: turn transparency off and set the timer's background to that same color. The edges then blend with the right color and no halo appears. Transparency pays off when the timer sits on top of an image or a gradient.
Which styles support a transparent background
flat,minimalandserif. The digits are drawn straight onto the transparent background. These blend into the email best.blocks,rounded,gradientandflap. Only the space around the cells becomes transparent. The cells are painted a fixed dark gray, so with these styles the digits need to be light.glass,ring,neonandbold. Always opaque. If you turn transparency on, the engine ignores it and the GIF goes out with its background.
flat, minimal, blocks, rounded and gradient are on the free plan; flap and serif are Pro.
When the timer expires, you can also make it disappear: instead of the expired message, the engine serves a 1 pixel transparent image.
Dark mode
Some email clients change the message background when the user picks a dark theme. According to Microsoft, with dark mode in Outlook.com and Outlook on the web the reading pane has a dark background, and the "Turn on the lights" button shows the original formatting. In Mail on the Mac, "Use dark backgrounds for messages" shows messages on a dark background when the system is in dark mode.
A transparent GIF shows whatever the client paints behind it. If your digits are dark and the client darkens the background, they lose contrast and the colored edges stand out. Microsoft's and Apple's help pages talk about the message background, not images, so we don't know how each client treats the colors inside a GIF.
That's why the advice is to test:
- Send yourself a test and open it in Outlook.com with dark mode on, and in Mail on the Mac with dark backgrounds on.
- If the digits are hard to read, raise the label contrast or use a timer with an opaque background, which carries its own color inside the image.
- Write the deadline in the email copy too, for anyone who can't read the timer well.
Before you send
Look at the timer where it will actually sit, on your template's background and on a phone, where the edges are seen up close. If the timer sits on an image, check that the digits are readable over both the lightest and the darkest part of it.
If you're pasting it into a specific platform, there are step-by-step guides for Klaviyo, Mailchimp, HubSpot and Shopify Email. And if you want a separate countdown for each recipient, read how the evergreen timer works.
Common questions
Can a GIF be partly transparent?
No. The GIF format marks a single palette color as transparent. Each pixel is either fully visible or not shown at all, with nothing in between.
Why is there a pink edge around the digits?
Letter edges are smoothed by blending their color with a magenta key color, which is the one that later becomes transparent. The blended pixels aren't exactly that color, so they stay opaque with a pink or purple tint.
Which styles support a transparent background?
The five free styles (Blocks, Flat, Minimal, Rounded and Gradient) and two Pro styles, Flap and Serif. Glass, Ring, Neon and Bold are always opaque: if you turn transparency on, the engine ignores it.
What color should the digits be?
Whatever contrasts most with your email's background: dark digits on a light email and white digits on a dark one. Check the label color too, since labels are small and show the edge more.
How does it look in dark mode?
It depends on the client. Outlook.com and Apple Mail on the Mac can show the message on a dark background, and a transparent GIF lets that background show behind your digits. Test in both before you send.
Is it free?
Yes. Transparent backgrounds work in all five styles on the free plan.
Sources
- GIF89a: palette of up to 256 colors; the Graphic Control Extension sets a single transparent index; disposal methods. w3.org, accessed on
- Transparency uses a magenta key color (255,0,255) as the transparent index; the pink antialiasing edge against magenta is kept on purpose; transparent is ignored when the style doesn't support it; Glass, Ring, Neon and Bold are opaque. Kauntodaun technical documentation, accessed on
- supportsTransparent is true for the base styles and PremiumStyle (Flap, Serif) and false for Glass, Ring, Neon and Bold; with transparency on, Blocks, Rounded and Gradient cells use a fixed color (40,40,60) and Flap cells (24,24,30). Kauntodaun technical documentation, accessed on
- Free styles Blocks, Flat, Minimal, Rounded and Gradient; Pro styles Glass, Flap, Ring, Neon, Serif and Bold. Kauntodaun technical documentation, accessed on
- With dark mode in Outlook.com and Outlook on the web, the reading pane has a dark background; Turn on the lights shows the message's original formatting; the page doesn't mention images. support.microsoft.com, accessed on
- Mail on Mac: Use dark backgrounds for messages shows messages with a dark background; View > Message > Show with Light Background. support.apple.com, accessed on
- On expiry, the timer can show a message or a 1 px transparent image. Kauntodaun technical documentation, accessed on