MarkupGenMarkupGen
DocsResourcesBlogUse CasesCompare
Log inStart for Free
  1. MarkupGen
  2. /Blog
  3. /Create and Customize HTML5 Banners from Figma with MarkupGen
Back to blog

Published 2026-10-12 · By MarkupGen Team

Create and Customize HTML5 Banners from Figma with MarkupGen

Create and Customize HTML5 Banners from Figma with MarkupGen

A banner is finished in Figma long before it is finished in code. Someone still has to rebuild the headline, the product shot and the button in HTML and CSS. Then the feedback arrives: make the offer bigger, try the button in yellow, tilt the badge a little, let the headline slide in. Each of those is a small change, and each one usually means another trip back to the design file or into the stylesheet.

MarkupGen is built for that second half of the job. It lets you create HTML5 banners from Figma designs, and then keep working on the result in the Studio Editor: change colors and text, rotate and resize elements, add entrance animations, and build a slider, all on the generated banner itself. This guide walks through the full Figma to HTML5 banner workflow and says plainly what the tool does and does not do.

Design in Figma. Convert with MarkupGen. Customize and animate in Studio Editor. Export your HTML5 banner.

Why convert Figma banner designs into HTML5?

A static image is the easy way to ship a banner, and it has real costs. The text is baked into pixels, so it cannot be changed, translated or read by a screen reader. Every copy change means a new export. And an image cannot move.

An HTML5 banner keeps the headline as real text, the button as a real link and the layout as CSS. That makes it editable after the design is done, and it makes motion possible. The cost is the build: writing markup and styles by hand for every size and every revision. A Figma to HTML5 converter removes most of that first build. What it usually does not remove is the revision work that comes after, which is where an editor matters.

The MarkupGen Figma to HTML5 banner workflow

The workflow starts in the MarkupGen Figma plugin. Select the banner frame and send it. The frame's structure, text and images arrive in your MarkupGen workspace as a project, where you generate the code.

A banner is converted the same way as any other frame. MarkupGen has no separate banner mode, so think of it as a Figma banner converter that outputs ordinary HTML and CSS:

  • Headlines and promotional text stay as real text.
  • Product and background images are exported with the project.
  • CTA buttons keep their fill, radius and label.
  • Typography, colors, spacing and positions are read from the design file rather than guessed from a screenshot.

The result is usually close to the design. It is not a guarantee of a pixel-perfect copy: unusual effects, fonts that are not on Google Fonts and heavily overlapped layers are the places to check first. How MarkupGen's Figma-to-HTML/CSS conversion works goes deeper on how a design is read.

Edit banner designs directly in Studio Editor

This is what makes MarkupGen more than an HTML5 banner generator. Turn on Visual Editor in the project toolbar (the editing mode this article calls the Studio Editor), select an element in the preview or in the HTML tree, and its properties open in the Design tab. It works as an HTML5 banner editor in the browser: every change is written back to the HTML and CSS, so the code you export is the banner you see.

The MarkupGen Visual Editor: the HTML tree on the left, the live preview in the middle, and the inspector with content, link and layout fields on the right

A real screenshot of the Visual Editor in MarkupGen, shown here with a product page design.

Customize colors and visual properties

Under Color & display you set an element's background color, text color and opacity. Further down are border width, style, color and radius, a box shadow, and filters: blur, brightness, contrast, saturation and grayscale.

In practice: a marketer wants to test the "Shop now" button in yellow instead of blue. Select the button, change the background color, and the preview updates. Nobody reopens Figma or reads a stylesheet.

Fine-tune typography

Under Typography you change font size, font weight, line height and text alignment. Double-click a text in the preview to edit the words themselves.

One limit to know: the font family comes from your Figma design. The editor has no font-family picker, so to switch typefaces you change it in Figma and convert again, or edit the CSS in the code view.

Rotate, resize and reposition elements

Rotate & layer gives you a 2D angle with quick 90° buttons, plus 3D rotation around the X and Y axes with an adjustable perspective distance. That is enough to tilt a "50% off" badge by a few degrees or give a product card a slight 3D lean. A z-index field controls which element sits on top.

Size and position are set with exact values: width, height, margin and padding per side, alignment inside a flex or grid parent, and order. It is not a free drag-and-drop canvas. You select an element and change its properties.

You can also swap an image without leaving the editor: select it and use Replace image to upload a new file (up to 5 MB). That turns one banner into the next product's banner in a few clicks.

Add entrance animations and sliders

Two features turn a static layout into an animated HTML5 banner.

Entrance animations. In the Animation section you pick a preset for the selected element: fade, slide, zoom or flip, in several directions. You then set its duration, delay and easing, and whether it runs only once. Give the headline, the offer and the button different delays and they appear one after another. Replay animation shows the result without reloading.

Sliders. In the Slider section, click Select multiple elements, click the elements that should become slides (at least two), and choose an effect. There are more than 30 across three groups, Swiper, Carousel and Motion, and MarkupGen suggests the ones that fit your selection. Afterwards you can adjust speed, autoplay and its delay, loop, direction, arrows and pagination. A typical use is a banner that rotates through three product shots or three offers in one frame.

Be clear about what this is not. There is no timeline or keyframe editor: animations are presets with settings, and they play when an element enters the viewport. The slider is paused while you edit so every element stays selectable; click Play slider to watch it run. Slide sizes are captured in pixels, which suits a fixed-size banner but means slides do not rescale with the screen. Animations and sliders also add external libraries to the page (AOS, Swiper and, for Motion effects, Motion), loaded from a public CDN.

Preview and refine your banner before export

Editing and previewing happen in the same place, so refining is a loop rather than a handoff:

  • Check visual consistency by comparing the preview with the original design image side by side.
  • Fine-tune text, colors and placement and see each change immediately.
  • Review the motion: replay entrance animations and play the slider.
  • Iterate safely with undo and redo, and save when it looks right.

On paid plans, AI Evaluation adds a second opinion: a 0 to 10 match score across six weighted criteria, with a written list of differences. Treat it as a guide to where to look. It does not certify a banner as pixel-perfect or consistent in every browser, so test in the browsers your audience uses. How to evaluate AI-generated HTML covers the checks worth doing by hand.

Export HTML5 banners for advertising workflows

When the banner looks right, download the HTML and CSS together with its images and fonts as a .zip, or copy the code. HTML/CSS download is available on the Free plan; React, Vue, Svelte and Angular component exports need a paid plan.

What you get is clean banner markup that you own. What you do not get is an ad-network package. Requirements for HTML5 advertising banners differ by platform: click-tracking code, file-size limits, naming rules, and often a ban on external scripts and fonts. MarkupGen does not add click tags or validate against any network's spec, and a banner that uses animations or a slider loads libraries from a CDN, which some networks reject. Check your platform's rules and run the banner through its own validator before trafficking.

If the banner is going on your own site, a landing page or a CMS block, the exported HTML and CSS are often all you need. For banners that go into an email, see Email Ready.

A practical example: from a Figma banner to an animated HTML5 banner

Take a 300×250 promotion with a headline, a "Up to 50% off" line, a product photo, a round discount badge and a "Shop now" button.

  1. Design it in Figma as one frame, with real text layers.
  2. Transfer the frame with the MarkupGen plugin.
  3. Convert it to HTML with Vanilla CSS, the most portable choice for a standalone banner.
  4. Open the project and turn on Visual Editor.
  5. Edit: raise the headline's font size and weight, change the button's background color, rotate the badge by −8°, then give the headline a Slide left entrance and the button a Fade up entrance with a 0.4 s delay.
  6. Preview: replay the animations and compare the result with the design.
  7. Export the .zip and test it where the banner will run.

When the campaign moves to the next product, replace the image, edit the text, and export again. Nothing is rebuilt.

Benefits for designers, marketers and developers

  • Designers and creative teams see their layout in real code and can correct spacing, color and copy on the banner itself instead of writing a change request.
  • Marketing teams can edit HTML5 banners online for a new offer or a new product without waiting for a development slot. See MarkupGen for marketing teams.
  • Frontend developers skip the rebuild and get readable HTML and CSS to finish by hand. See MarkupGen for developers.
  • Agencies and ad production teams handle rounds of client feedback as edits rather than rebuilds. See MarkupGen for agencies.

For the full list of editor features and their limits, see the MarkupGen docs.

Frequently asked questions

Can I create HTML5 banners from Figma designs? Yes. Send the banner frame with the MarkupGen Figma plugin and generate HTML and CSS from it. The result is usually close to the design, but an exact match is not guaranteed, so compare the preview with the original.

Can I edit a banner after converting it? Yes. Turn on Visual Editor, select an element, and change its content, layout and styles. Edits are written to the generated HTML and CSS. They do not sync back to your Figma file.

Can I change fonts, colors and text sizes? You can change text and background colors, font size, font weight, line height and alignment. The font family itself comes from the Figma design; there is no font-family picker in the editor.

Can I add animation effects to banner elements? Yes, within limits. You can apply entrance presets (fade, slide, zoom, flip) with duration, delay and easing, and turn several elements into a slider with more than 30 effects. There is no timeline or keyframe editor.

Can I export the result as HTML5? Yes. You download the HTML and CSS with images and fonts as a .zip, or copy the code. It is not a ready-made ad-network package: click tracking and platform-specific requirements are yours to add and validate.

Is the Studio Editor available on the Free plan? Yes. Visual editing is included in the Free plan, where it shares the monthly quota of 5 code generations, and is unlimited on paid plans.

Turn your next Figma banner into an editable HTML5 banner

Design in Figma. Convert with MarkupGen. Customize and animate in Studio Editor. Export your HTML5 banner.

Convert Figma to HTML with MarkupGen →

Try it with Figma to HTML

Related reading

Email Ready: HTML Email from a Figma Design or ImageBlog

Email Ready: HTML Email from a Figma Design or Image

MarkupGen's Email Ready mode turns a Figma design into table-based HTML email, or slices an image into a clickable email that stays under Gmail's 102KB clip.

Read more
Figma to HTML vs React vs Tailwind: Which Should You Choose?Blog

Figma to HTML vs React vs Tailwind: Which Should You Choose?

A decision guide for MarkupGen's three most-asked-about output choices — when to export Figma to HTML/CSS, when to export to React, and where Tailwind actually fits in.

Read more
Figma to Code: MarkupGen's React, Vue and CSS Framework SupportBlog

Figma to Code: MarkupGen's React, Vue and CSS Framework Support

MarkupGen converts a Figma design into React or Vue 3 components (plus Svelte and Angular), or HTML/CSS with Tailwind, Bootstrap and more.

Read more
How to Evaluate AI-Generated HTML Before You Ship ItBlog

How to Evaluate AI-Generated HTML Before You Ship It

A repeatable checklist for judging AI Figma-to-code output beyond 'it looks right' — visual fidelity, semantics, responsiveness, accessibility and weight.

Read more
Is Figma-to-HTML Output SEO-Ready? What to CheckBlog

Is Figma-to-HTML Output SEO-Ready? What to Check

Converted HTML can look identical to the design and still hurt SEO. A checklist for what to verify before publishing a Figma-to-code export.

Read more
Figma to Accessible HTML: A Practical GuideBlog

Figma to Accessible HTML: A Practical Guide

What accessibility actually requires in a Figma-to-HTML workflow — semantic markup, headings, ARIA, forms, contrast and keyboard navigation.

Read more
Compare

MarkupGen vs. Figma Dev Mode: What's the Difference?

Figma Dev Mode helps developers inspect a design; MarkupGen turns a whole frame into a ready HTML/CSS/React file. Here's how they differ.

Read more
MarkupGen for Agencies & FreelancersUse Cases

MarkupGen for Agencies & Freelancers

Turn approved Figma designs into client-ready HTML, CSS or React faster, with each project kept private to your workspace.

Read more

Turn your next Figma design into code

Start free and export clean HTML, CSS or React from any Figma file.

Convert for Free
MarkupGenMarkupGen© 2025 MarkupGen. All rights reserved.
BlogUse CasesCompareResources
AboutDocumentationPrivacyTermsContact