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
- Host: GitHub
- URL: https://github.com/24webcomponents/marquee-text-element
- Owner: 24webcomponents
- License: mit
- Created: 2022-12-01T17:16:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-02T10:15:09.000Z (over 1 year ago)
- Last Synced: 2024-12-02T11:26:26.554Z (over 1 year ago)
- Topics: 24-web-components, custom-element, web-component
- Language: TypeScript
- Homepage: https://24webcomponents.github.io/marquee-text-element
- Size: 104 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
- Security: SECURITY.md
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.