marquee-text-element

<marquee-text> element

An element which scrolls the text inside it like the traditional marquee element found in the browsers of yesteryear.

Installation

Available on npm as marquee-text-element.

$ npm install --save marquee-text-element

Usage

Script

Import as ES modules:

import 'marquee-text-element'

Include with a script tag:

<script type="module" src="./node_modules/marquee-text-element/dist/index.js">
<marquee-text duration="2s">
  This text will scroll across the page over 2s
</marquee-text>

Browser support

Browsers without native custom element support require a polyfill.

License

Distributed under the MIT license. See LICENSE for details.