Marquee Generator
WM-139Type the banner text, pick direction, speed and colors, and copy the HTML and CSS. The banner uses a CSS animation, not the old marquee tag, and stops moving for people who ask for less motion.
Runs in your browser. Nothing is uploaded.
Banner text
Preview and code
How to use it
- Type the banner text. Each line becomes one item in the scrolling row.
- Choose the direction, speed, colors and text size.
- Watch the live preview, with the generated code shown under it.
- Press Copy HTML or Download and paste the code into your page.
How the CSS marquee works
The output holds two copies of your list side by side. A keyframe animation slides both by the width of one copy plus the gap, then starts again, so the loop has no visible jump. Short text still fills the row because each copy is at least as wide as the banner. The second copy has aria-hidden so screen readers read the text once. No JavaScript is needed, and the code works in any current browser.
Motion, speed and accessibility
Speed sets the time for one full loop: about 30 seconds for slow, 15 for medium and 8 for fast. Because the time is fixed, a long text moves faster across the screen than a short one. Pause on hover also pauses when a link inside the banner has keyboard focus. The CSS includes a prefers-reduced-motion rule, so visitors who turn on reduced motion in their system see the items as still text instead.
The old marquee tag
The marquee element is obsolete in the HTML standard. Browsers still display it, but you cannot style its motion with CSS and it keeps moving when someone has asked for reduced motion. Tick the option only when a system you must support needs it; the output then includes a comment saying so. The direction, speed and colors you picked are carried over as attributes and an inline style.
Error messages and what to do
| Message | What it means | Fix |
|---|---|---|
Type the text for the banner first. | The text box is empty or holds only spaces. | Type at least one line of text. |
There are 51 lines. The banner takes up to 50. | Each line becomes an item, and more than 50 items were entered. | Join some lines or shorten the list. |
Questions people ask
How do I make scrolling text in HTML without the marquee tag?
Use a CSS animation that moves a row of text with transform: translateX. This generator writes that code for you: two copies of the text, a keyframe animation and a reduced-motion rule. Copy the HTML and CSS and paste them into your page.
Is the marquee tag still supported?
Browsers still show it, but it is marked obsolete in the HTML standard and should not be used in new pages. It ignores the reduced-motion setting and cannot be paused with CSS. The CSS version from this tool does the same job with current, supported code.
How do I make the marquee scroll right or up?
Pick Right, Up or Down in the Direction menu. Right plays the same animation in reverse. Up and Down stack the items in a column and slide them vertically inside a banner of fixed height, which you can change in the CSS.
How can I change the speed after copying?
Change the seconds in the animation line of the CSS, for example from 15s to 25s for a slower loop. The value is the time for one full pass of the text, so a longer text needs more seconds to move at the same pace.
Does the scrolling text respect reduced motion?
Yes, for the CSS version. A prefers-reduced-motion media query turns the animation off, hides the duplicate copy and lets the items wrap as still text. The old marquee tag has no such rule and keeps moving.
About this tool
Each line of text becomes one item in the banner. The output is plain HTML and CSS with no JavaScript: two copies of the list slide by one copy plus the gap, so the loop has no jump, and the second copy is hidden from screen readers. Speed is the time for one loop (30, 15 or 8 seconds), so a longer text moves faster on screen. The CSS includes a prefers-reduced-motion rule that turns the banner into still text for people who ask for less motion. The old <marquee> tag is offered only as an option: it is obsolete in HTML, still shown by browsers, and ignores that motion setting.