marquee-text-element
v0.0.1
Published
An elemen which scrolls the text inside it like the traditional [marquee](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/marquee) element found in the browsers of yesteryear.
Downloads
28
Readme
<marquee-text> element
An elemen 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.
- Chrome
- Firefox
- Safari
- Microsoft Edge
License
Distributed under the MIT license. See LICENSE for details.