An open API service indexing awesome lists of open source software.

https://github.com/24webcomponents/marquee-text-element

An element which scrolls the text inside it like the traditional marquee element found in the browsers of yesteryear
https://github.com/24webcomponents/marquee-text-element

24-web-components custom-element web-component

Last synced: 11 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# <marquee-text> element

An element 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.

## Installation
Available on [npm](https://www.npmjs.com/) as [**marquee-text-element**](https://www.npmjs.com/package/marquee-text-element).
```
$ npm install --save marquee-text-element
```

## Usage

### Script

Import as ES modules:

```js
import 'marquee-text-element'
```

Include with a script tag:

```html

```

```html
<marquee-text duration="2s">
This text will scroll across the page over 2s
</marquee-text>
```

## Browser support

Browsers without native [custom element support][support] require a [polyfill][].
- Chrome
- Firefox
- Safari
- Microsoft Edge

[support]: https://caniuse.com/custom-elementsv1
[polyfill]: https://github.com/webcomponents/custom-elements

## License

Distributed under the MIT license. See LICENSE for details.