SVG Text Animation Generator

Draw outlines and fills with SVG stroke animation.

Preview

ToolDeck

Settings

Text
8 / 30
Animation preset
Colors and stroke
Timing
Code
SVGHTML + CSSReact
<svg class="svg-text-anim" viewBox="0 0 600 96" width="100%" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="ToolDeck">
  <style>
    .svg-text-anim { background: #09090b; overflow: visible; }
    .svg-text-anim-text { font-family: system-ui, sans-serif; font-size: 64px; font-weight: 700; fill: #ffffff; stroke: #fb7185; stroke-width: 2; stroke-dasharray: 308px; stroke-linecap: round; stroke-linejoin: round; animation: text-stroke-draw 3s ease-in-out 0s infinite backwards; }
    @keyframes text-stroke-draw {
      0% { stroke-dashoffset: 308px; fill: transparent; }
      60% { stroke-dashoffset: 0px; fill: transparent; }
      100% { stroke-dashoffset: 0px; fill: #ffffff; }
    }
  </style>
  <text class="svg-text-anim-text" x="50%" y="54%" text-anchor="middle" dominant-baseline="middle">ToolDeck</text>
</svg>

Paste the SVG into your HTML. It plays on its own.

What is the SVG Text Animation Generator?#

The SVG Text Animation Generator turns a short line of text into an animated headline. Choose one of four presets, from drawing the outline to revealing a gradient, and adjust the colors, stroke, font, and timing to match your page. The artwork is SVG, so it stays sharp at any size.

Copy the result into your page or project, or download it as a file.

How to Use#

  1. Type the headline text, up to 30 characters, then set the size, font, and weight.
  2. Pick an animation preset.
  3. Set the stroke width and colors.
  4. Adjust the duration, delay, easing, and repeat.
  5. Choose the output format, then copy the code or download it.

While you work, the preview has its own controls. Replay, Pause, and Reset act on the preview, and Pin preview keeps it visible while you adjust the settings.

Presets and Options#

  • Stroke Draw: draws the outline first, then fades the fill in. Good for a dramatic opening line.
  • Outline to Fill: traces the same outline, then dissolves it into the fill. A quieter change.
  • Glow: adds a glow as the outline is drawn, then settles on a soft fill. Suits dark backgrounds.
  • Gradient Reveal: reveals the outline and fill in a two-color gradient. The start and end colors appear only for this preset, and replace the fill and stroke colors while it is selected.
  • Text: one line. Line breaks are removed.
  • Font: the system font by default, or one of the built-in fonts.
  • Font size / weight: size in px and weight.
  • Colors: fill, stroke, and background. The background paints the preview stage and ships in the snippet.
  • Stroke width: outline thickness in px.
  • Duration / Delay / Easing / Repeat: how long one play lasts, how long it waits before starting, how it accelerates, and how many times it plays.
  • Output format: SVG keeps the whole animation in one element, HTML + CSS separates the style from the markup, and React returns a component.

Common Use Cases#

  • Adding motion to a landing page headline.
  • Making a logo-style one-liner stand out.
  • Decorating an event or campaign page header.
  • Checking stroke widths, colors, and presets before writing the CSS into a stylesheet.

FAQ#

  • Generator

Last updated:

Related tools