How to add a countdown timer to HTML emails in Figma using Emailify
Follow along with this step by step Figma tutorial video.
Steps
- Open a new Figma file and run the Emailify plugin from the Resources icon or Saved plugins.
- Create an Emailify email frame and add a simple content layout with a Column layer.
- Generate a countdown timer on sendtric.com, copy the timer image URL from the src attribute, and paste or place the timer image into Figma.
- Select the image layer, open Emailify "HTML & Mobile Settings," and use "Override image source" to paste in the dynamic countdown URL.
- Preview the email to confirm the countdown timer loads dynamically in the HTML preview.
- Export using "Export HTML" and the "HTML Email" option, then open the exported files to verify the countdown timer appears in the HTML output.

Published
Used in this video
Emailify
ć”ć¼ć«
Stop hand-coding HTML emails.
Design responsive emails in Figma and export production-ready HTML for popular email platforms.
135k+ installs
Video Transcript
Today Iām going to be showing you how to add a countdown timer to your email designs that can then be exported to HTML directly from Figma.
To get started, all we need to do is open up a new Figma file, go to the āResourcesā icon in the top header here, then if you search for āEmailifyā under the āPluginsā tab youāll see the Emailify result pop up. If you click on that, you can run the Figma plugin by either clicking the āRunā button here or you can click on this little āMore optionsā icon and save that to your Figma plugins list, and thatās just going to let you access it again later really easily. Iāve already added it to my Figma plugins list, so Iām going to right click on my canvas, go down to āPluginsā go down to āSaved pluginsā, then just click on the Emailify menu item and thatās just going to run the Figma plugin we saved a second ago.
If youāre new to the Figma plugin, the way that it works is you basically add a special email frame using the Figma plugin, so Iām just going to add a new frame, Iām just going to call it āEmail Countdownā, add that container, and then what you can do is you can basically go through and add customizable Figma content. If we go through and add some of these modules, it just instantly adds a whole bunch of content that you can customize in Figma, as youād expect; changing the content, changing the styles, changing the colors, all of that sort of stuff to suit your needs. Iām going to keep the design really simple today, if you want to deep dive into how to actually design these using the Figma plugin for desktop and mobile, and do a whole bunch of fancy stuff, thereās a whole bunch of other tutorials on the channel that you can check out if you find the Emailify playlist on our YouTube channel.
For today, as I said, Iām just going to be showing you how to add a countdown timer, one that looks like this, directly into your HTML emails in Figma. Thereās a few different services that offer this, I donāt have a particular one that I recommend, thereās a whole bunch, most of them have free options; thereās mailtimers.com, motionmailapp.com, mailtimer.io, promofeatures.com, thereās a whole bunch of them. Today Iām just going to be using this one called sendtric.com, and the reason Iām using this is just because itās a really simple generator, and you donāt have to go through a lengthy sign up process to generate one of these countdown timers; you can basically just pop in the details. If you just search for your time zone, and pop in the time that you want to change the time to end, Iām just going to say end this on Saturday, and then you can customize the design of the timer. In this case Iām going to match the background color to the email background color, and then Iām just going to change the label colors a little bit as well, Iām just going to make these a bit darker, and then once Iām happy with that Iām just going to generate the countdown timer. Iāve just hit āGenerateā, and you can see here itās given me this countdown timer that I can now use inside of our email.
Basically, if you look down here, youāll see this special image link thatās in this source tag; donāt worry about all of the other code, all weāre going to be focusing on for today is this link in between the āsrcā attribute here. Where Iām highlighting that, if you just copy that to your clipboard and then open up a new tab; Iāve just opened that up in a new tab in the browser, and what weāre going to do is weāre going to drag and drop this image, we have to actually copy it, so if we do āCopy imageā, and then do paste with āCommand + Vā, or āControl + Vā if youāre on Windows, and now weāve got our image layer. This is a static image layer, this is not a GIF, but the way weāre going to be using this is to swap out the image URL with the live one in a second. Keep this tab open, because weāre going to be using it again in a second. Iām going to be taking this Figma image layer and Iām going to be moving it inside of my existing content layer, I want to include the countdown timer in this content here, so Iām actually going to drag and drop that image directly into that āColumnā layer. Thatās in there now, and I can center that by going to the column layer, clicking on the center icon in the Figma auto-layout settings; thatās now centered this image layer. Now what we want to do is we can either leave it at that size, so this is the 1x size, but I actually want to make this a little bit smaller. Iām going to go into my width properties and Iām just going to go divide by two; Iāve just divided that by two, and thatās basically going to make it look a little bit sharper once we now export this into HTML.
To make this dynamic, the way that we can do it is if you click on the image layer; once youāve clicked on the image layer, you want to go into the Figma plugin and click on the āHTML & Mobile Settingsā button. As you can see, once you click that, it loads up a whole bunch of options that you can apply to this image. The one that weāre interested in today is the āOverride image sourceā option; what this allows us to do is paste in a custom image URL and when this email gets exported to HTML in a moment, this value here is going to be automatically swapped in place of whatever image weāve got in Figma. Iāll show you what that looks like, if we go back to our browser tab and just copy that URL; copy that whole dynamic countdown timer link that we generated, go back to your Figma plugin, and paste it inside of that āOverride image sourceā attribute, and close off the settings panel. Then we can now preview that by clicking on the āPreviewā button up here, and this is going to generate a HTML preview; this is a real HTML preview of the HTML email. We can expand that out to go to a wider size, so we can see what it looks like on desktop, and you can see here this is a dynamic GIF; this is now pointing to the dynamic link that we got from our browser that we generated, this is now the exact same URL that is now being loaded in to this image tag here dynamically. Itās overriding whatever image is in Figma, and itās swapping it out with that URL pointing directly to the countdown timer, and this is how we can include a dynamic countdown timer in our HTML email.
Iām now going to export that to HTML, and the way we do that is just by closing off the preview, and clicking on the āExport HTMLā button. Iām going to do that, and then Iām going to hit the āHTML Emailā option, thereās a whole bunch of other platforms, if youāre using a certain platform like MailChimp or Klaviyo you can upload this directly into your platform; today Iām going to keep it really simple and just download it to the computer. Iām just going to click āExport to HTMLā, and this is going to generate the HTML for us. Iām just going to save that, Iām going to download the zip file, Iām just going to pop it on my desktop and hit āSaveā, and then if I open up Finder and just go to the desktop, double-click on the zip file, open up the folder. Now if we open up the preview HTML, Iām just going to drag that into my browser, and you can see here that weāve now got our exported HTML ready to go. Itās got our countdown timer, we can see what it looks like on mobile, we can see what it looks like on desktop in this preview. If you want the actual HTML file thatās exported, just go into the folder, name grab the āindex.htmlā file and drop that in, and now you can see the full HTML. If we go to āView Sourceā, you can see if we explore the image source and then we go to our image tag; Iām just going to search for the āimgā tag, and you can see here that in the image tag, itās actually pulling in the same countdown image that we generated before.
As I mentioned before, I went to the trouble of halving the size of that countdown; if you want to leave it at the regular size, you can totally do that. Just put it back up to the normal size, preview that again, and youāll see that itās now much bigger; you can you can make it whatever size you want, I just didnāt want it to be too pixelated if it got too big, thatās why Iām at it a little bit smaller before. Bear in mind, if you do make it bigger, it will automatically resize down on mobile as well. If you do have a smaller mobile screen, thatāll responsively shrink the image width based on the width of the mobile width as well, so you donāt need to worry too much about that.
I think weāll leave it there for today, I hope thatās been helpful, as some of you have been asking for how to do this; how to insert a dynamic countdown timer into your HTML emails using the Emailify plugin in Figma, this is the best way to do it. As I mentioned, explore some of these options, weāve only gone through one of these services today, and some of the other services are going to allow you to create more customizable countdown timers. Do check out a whole bunch of different options and find the right one for you, as you can see here, some of these are much more advanced, and you can customize the design a lot more. This one is always going to be a basic one if you just want a really easy option, but if youāre wanting something thatās more engaging, you might want to check out some of these other services, such as this one, mailtimer.io, or some of the other ones that are available.
Weāll leave it there for today, I just wanted to focus on the countdown timer for this Figma tutorial and keep it fairly straightforward; I hope thatās been helpful, as I said, and please feel free to give it a try in Figma with you or your team. Thank you as always for watching weāll be back with more Figma tutorials like this one very soon.

Adam Brock
Founder & CEO of Hypermatic


