How to export Figma to HTML Canvas using Bannerify
Follow along with this step by step Figma tutorial video.
Steps
- Install the Bannerify HTML Exporter plugin from the Figma Community if it is not already installed.
- Open your Figma file and launch Bannerify by right-clicking the design, then selecting plugins and Bannerify HTML Exporter.
- In the plugin, click Export Banners to HTML to open the export settings panel.
- Under Code output settings, change Export format/platform from Vanilla HTML/CSS to Vanilla HTML/JS (HTML Canvas).
- Click Export Banners and save the generated zip file with the default or preferred name.
- Open the zip file, then open index.html in Chrome to preview the exported banners and animations.

Published
Used in this video
Bannerify
ăăăŒ
Animate banners in seconds.
Animate and export production-ready HTML, GIF, and MP4 banners from Figma in seconds.
77.6k+ installs
Video Transcript
Today, Iâm going be showing you how to export banners that youâve animated in Figma to the HTML Canvas format.
To do that, we need to install a Figma plugin called Bannerify. If you havenât already done so; you can go to the top left corner of the Figma toolbar and click on the Figma icon, and then if you go to âSearchâ or âCommunityâ, whichever one you prefer and go to the search bar and type in the word âBannerifyâ; if you go to the âpluginsâ tab youâll see a Figma plugin called âBannerify HTML Exporterâ. If you havenât installed it, you want to go over to the right and click on the âinstallâ button; Iâve already got it installed, thatâs why mine has the little check, but if your says âinstallâ, you can click on that and thatâll change it to say âinstalledâ.
Once youâve done that, you can jump back over to your Figma file. Iâm currently using the example that is available through the Bannerify description; if you go to the Bannerify plugin and click on it to see the descriptionm there is a link in the description under âadditional notesâ which will give you access to the file that weâre going to be using in this Figma tutorial; if you do need to use that just jump into the description and and paste that link into your browser and youâll have access to to duplicate this file that weâre using in the Figma tutorial.
To start up Bannerify, just right click anywhere in the project, go down to âpluginsâ, and then go to âBannerify HTML Exporterâ and click on that; and this will load up the Figma plugin that weâve just installed. Because weâre using a design that already exists, this particular design has already been configured to have some animations preset, if youâre doing this on your own banners, youâll have to just select all these animations yourself; weâve got another Figma tutorial, a very in-depth tutorial about how to actually configure animations and all the neat things you can do to make it really easy; you can check out our YouTube channel that youâre looking at this video on for that extended Figma tutorial; but in this case Iâm going to assume that youâve already setup your animations or youâre using this example file.
You can see here weâve already got some animations set, you can you can change those of course to be whatever you want. Weâve got a bunch of banners in here theyâve all got the same animation settings and what we want to do is export this to HTML Canvas. Where we can do that is by clicking on the âExport Banners to HTMLâ button up in the top right, and this reveals the export settings panel; thereâs a number of options that we can configure in here, we wonât go through all of them today because theyâre not all relevant to what weâre trying to do, but the one that we do want to have a look at is down here underneath âCode output settingsâ, and then under âExport format/platformâ, itâs currently set to âVanilla HTML/CSSâ; that will export HTML from Figma with CSS animations, thatâs typically the the most common format that youâll export, but there are going to be some circumstances where you need to export to HTML Canvas.
Iâve just clicked on the drop-down and instead of selecting âVanilla HTML/CSSâ, which is the default, weâre just going to go down to âVanilla HTML/JSâ, âJSâ which is âJavaScriptâ, and then in brackets it says âHTML Canvasâ, and then canvas has got the little HTML tag around it. If we click that, what this is going to do is instead of generating HTML and CSS, itâs going to convert or export all of your banners to HTML and JavaScript, and instead of using image tags, itâs just going to use a single canvas tag.
Letâs just have a look at what that looks like by exporting it; if we click on âExport Bannersâ at the bottom, this little button; Iâm clicking on that, this is generating HTML for me and then it will start going through all the images and and saving those; and weâre done; itâs extremely quick. Youâll get a little save dialog prompt up here; by default, the file name will just be matching with your document title; in this case itâs âBannerify Sado Banners Demoâ, and then use get a little suffix with the date and the platform that weâre exporting to (HTML Canvas) up here. Of course, you can change that, but for now Iâm just going to click âSaveâ.
Thatâs saved to our desktop, so all you have to do is double click on the zip file, and that will give us a look at all of the code and images is just exported for us. You can see here itâs a âone for oneâ with all the banners in our project. Itâs just got all the dimensions as the prefix and then the name of the frames that comes after that, and what we can do to have a look at them all at the same time is just double click on this âindex.htmlâ file and open that up in Chrome. Thatâs opened it up in Chrome for us, and if I just click on the play button again in the top right, you can see that theyâre all basically in sync and and all animating in.
To get an idea of what code thatâs generating, Iâm just going to open up my code editor and Iâll just drag in the medium rectangle and open that up. This is the code that Bannerify has generated for us, this is the banner that Iâm looking at here in the in the left hand side and then Iâve got my code on the right. You can see that weâve got an HTML Canvas tag; itâs just a single âcanvasâ tag with the dimensions that youâd expect from our banner; itâs got a JavaScript file thatâs being included; a CSS file is being included; a couple of bits of metadata up here; the GSAP animation library; and then weâve got our images folder; this is all of the images that our banner is comprised of, and the SVGâs for the text layers.
Then in the JavaScript file this, is basically our timeline; weâve got our timeline for all of the animations that are happening here, and and instead of using CSS itâs using JavaScript to dictate those timelines. This is all being generated automatically, you donât have to know code or write any code, Bannerify will generate all of this for you, and you get that animation that you can see here on the left hand side.
Thatâs essentially how you go about exporting banners from Figma to HTML Canvas and JavaScript based animations. It really is just just a one-click process of selecting the format in the in the export settings and clicking âexportâ, and youâll basically be able to go straight from Figma to HTML without having t to worry about coding up anything, the Bannerify Figma plugin will just handle it all for you.
Thatâs basically it; if you need anything else, you can check out one of our other Figma tutorials that cover other formats that can be exported, but if youâre looking for a way to convert your Figma designs into HTML, or âHTML Canvasâ specifically, then this is the best way to go about it. Weâre always trying to improve this Figma plugin; if you have any questions or suggestions, we always love to hear anything that you might want or find valuable in Bannerify, so please let me know. Until next time, thank you as always for watching.

Adam Brock
Founder & CEO of Hypermatic


