marquee-web-component
v1.0.0
Published
Simple web component that brings back the classic marquee effect for horizontal scrolling text.
Maintainers
Readme
Marquee Web Component
Tiny web component that brings the HTML4 <marquee> element back as a HTML5 web component. It currently only supports
horizontal scrolling. 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).
The component is lightweight, with no dependencies, and is only 0.9kb in size.
Installation
npm i marquee-web-componentImport or include
import 'marquee-web-component';or
<script src="marquee.min.js"></script>Usage
<x-marquee>This text scrolls from left to right</x-marquee>
<x-marquee speed="200">This text scrolls twice as fast</x-marquee>
<x-marquee speed="-100">This text scrolls from right to left</x-marquee>