Understanding what gets converted and how (Webflow)

Not every piece of code can become a native Webflow element. Here’s what does, what doesn’t, and why some sections look different in the Designer than they do on a published site.
Works with
  • Webflow

This page is about Convert to Webflow. The Converter does two things at once: it translates code into native Webflow elements wherever it can, and it embeds the rest as custom code so nothing gets lost. Understanding the difference between those two paths is the key to knowing what your converted section will look like — and where.

‍

__wf_reserved_inherit

‍

What converts to native Webflow elements

Most layout, styling, and content makes it through as real Webflow structure. That includes:

  • Layout primitives — divs, sections, containers, grids, flexbox structures, columns
  • Text content — headings, paragraphs, lists, links, buttons
  • Media elements — images, videos, SVGs
  • Static styling — backgrounds, colors, padding, margins, typography, borders, shadows

If your AI tool generated a clean section with vanilla HTML, sensible class names, and CSS-based styling, almost all of it will arrive in Webflow as real elements you can edit in the Designer.

‍

What comes through as custom code

Some things can’t be translated into native Webflow structures and instead get embedded as custom code blocks inside the section. That includes:

  • JavaScript animations and interactions — anything driven by GSAP, vanilla JS scroll triggers, click handlers, intersection observers, or any other script. This always lands as a JS Embed that runs on the published page. When your code references GSAP, the Converter adds the GSAP 3.12.5 script tag for you.
  • CSS animations — @keyframes and :root blocks always go into a CSS Embed
  • Complex CSS that doesn’t map cleanly — exotic selectors, certain pseudo-elements, or styles that depend on JavaScript-controlled classes
  • Anything Webflow doesn’t have a native equivalent for — custom web components, unusual structural patterns, or styling techniques outside Webflow’s element model

Embedded code still works — it just runs the same way it would in a hand-coded site. The section behaves correctly on the published page, but the embed itself isn’t editable in the Designer the way native elements are.

‍

Why some sections look “broken” in the Designer

This is the most important thing to understand about the Converter: the Webflow Designer doesn’t execute custom code. If your section relies on JavaScript animations to position elements, fade things in, or trigger interactions, those scripts don’t run inside the Designer view. What you’ll see is the static “before” state of the section — elements may overlap, content may look misaligned, or things that should be hidden might be visible.

That’s not a conversion problem. It’s how Webflow handles custom code embeds in general. The section will look and behave correctly once you preview or publish it.

‍

How to preview a converted section properly

To see what your section actually looks like, you have two options:

  1. Use Webflow’s Preview mode with custom code enabled — toggle Preview in the top right, and make sure “Render custom code” is on. The Designer will execute the embedded scripts and you’ll see the section as it would render live.
  2. Publish to a staging URL — push the project to your .webflow.io staging site and view it there. This is the most reliable way to see the final result, since it runs in a real browser with no Designer quirks.

We recommend publishing for the first check on any converted section that uses animations. It takes a few seconds and removes any ambiguity about whether the section is working.

‍

CSS animations vs. JavaScript animations

Worth calling out one more time, since it’s the most common source of confusion:

  • CSS animations (@keyframes) land in a CSS Embed.
  • JavaScript animations (GSAP, ScrollTrigger, custom scripts) land in a JS Embed.

Both work on the published page. Neither is editable in the Designer’s style panel or Interactions panel, and neither renders in the Designer until you preview with custom code on.

‍

Figma output

Everything in this chapter so far is about Webflow. Figma is a separate tool (Convert to Figma) that takes HTML and CSS only. The picture is simpler: layout, styling, text, and images convert to native Figma layers — frames, text nodes, fills, and rectangles you can edit normally. There is no JavaScript input there, since Figma is a design tool, not a runtime, so you get the static visual of the section without animations or interactions.

That’s usually exactly what you want when you’re using the Figma path — a clean design starting point you can work into a larger file.

The example AI prompt and the patterns that produce code the Converter handles best.