Scrolling caption generator
Build a full-screen scrolling caption page: pick duration, direction, font size and colours to get a self-contained HTML file animated with plain CSS — save it and open it full screen.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Line breaks, tabs and repeated spaces collapse into a single space: a caption is always one line.
Preview
The preview uses exactly the same animation settings as the generated code; only the distance scales with the page width.
Type a caption to generate the page
Generated page
Save it as .html and open it full screen. Plain CSS animation, no JavaScript required.
Type a caption to generate the page
What this tool does
- Generate a full-screen scrolling caption for an event or livestream and use a phone on a stand as a teleprompter or notice board
- Prepare a scrolling notice for a shop window screen or projector: save the HTML file and open it full screen
- Drop the generated CSS block into your own page to get an infinite marquee headline
Example
Input
Doors open at 20:00
Output
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Doors open at 20:00</title>
<style>
html, body { margin: 0; height: 100%; background: #000000; overflow: hidden; }
.uk-marquee { display: flex; align-items: center; height: 100%; }
.uk-marquee__track {
white-space: pre;
font: 72px/1.2 system-ui, -apple-system, "Segoe UI", "Noto Sans SC", sans-serif;
color: #ffffff;
will-change: transform;
animation: uk-marquee-left 8s linear infinite;
}
@keyframes uk-marquee-left {
from { transform: translateX(100vw); }
to { transform: translateX(-100%); }
}
</style>
</head>
<body>
<div class="uk-marquee"><div class="uk-marquee__track">Doors open at 20:00</div></div>
</body>
</html>The complete page produced with the default settings (8 seconds per pass, right to left, 72px, white on black, endless loop); every option you change is reflected in this code.
Frequently asked questions
Why is speed expressed as seconds per pass instead of pixels per second?
The travel distance uses viewport units: the text moves from just outside the right edge (translateX(100vw)) to outside the left edge (translateX(-100%)), which depends only on the screen width. Seconds per full pass therefore looks the same on a phone and on a projector, while a px/s figure would require assuming a screen width.
Does the generated file need the network or extra software?
No. It is a static HTML + CSS page whose animation is a CSS @keyframes rule; it contains no JavaScript and loads no external fonts or images. Open it in a browser and press F11 (on mobile, use the browser full-screen or landscape mode) to play it full screen.
What are the allowed ranges, and what happens if I exceed them?
Duration 1–600 seconds, font size 8–400 px, direction either right-to-left or left-to-right, and colours must be #rgb or #rrggbb. Out-of-range or malformed values raise an error instead of silently generating a page with different settings.
Is HTML in the caption executed?
No. The caption is escaped before it is embedded: <, >, &, " and ' become entities, so typing <b>Title</b> shows that text literally rather than rendering a tag, and no script can be injected.
Keywords:scrolling caption generatormarqueeoffline