An element which scrolls the text inside it like the traditional marquee element found in the browsers of yesteryear.
Available on npm as marquee-text-element.
$ npm install --save marquee-text-element
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>
Browsers without native custom element support require a polyfill.
- Chrome
- Firefox
- Safari
- Microsoft Edge
Distributed under the MIT license. See LICENSE for details.