Marquee Web Component Demo

Tiny web component that brings the HTML4 <marquee> element back as a HTML5 web component.

Adjust the speed of the scrolling with the `speed` attribute, where a positive value scrolls from left to right and a negative value scrolls from right to left, defaults to `100` (pixels per second).

Currently only supports horizontal scrolling.

No dependencies, 0.9kb.

Default usage

Scrolling text from left to right.

Custom speed

This text scrolls slower than the default.

Reverse scrolling

This text scrolls from right to left.

HTML content

Bold text and italic text can be used inside the marquee. You can also include links or any other HTML content.
Fork me on GitHub