Socket
Socket
Sign inDemoInstall

pwc-marquee

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pwc-marquee

A re-implementation of the [obsolete marquee](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/marquee).


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Progressive Web Component: Marquee

A re-implementation of the obsolete marquee.

This is a project done for fun and I would definitely not recommend using this in a real service, as the marquee element was made obsolete for a real reason :).

How to use

Use from CDN

<pwc-marquee>Scrolling text is fun</pwc-marquee>

<script type="module">
    import Marquee from "https://unpkg.com/pwc-marquee"

    window.customElements.define('pwc-marquee', Marquee)
</script>

Install from npm

npm install pwc-marquee
<pwc-marquee>Scrolling text is fun</pwc-marquee>

<script type="module">
    import Marquee from "pwc-marquee"

    window.customElements.define('pwc-marquee', Marquee)
</script>

Note: you can choose what the custom element is called by changing pwc-marquee to what you prefer.

Features

[TODO document what attributes you can use, see example/index.html for now]

Improvements over the original marquee element

  • Smooth rendering cross-browser

Think of a cool effect that could be added?

Feel free to raise an issue or contribute it.

Progressive Enhancement

As this is a progressive web component, for browsers that do not support custom elements, it will fallback to regular text.

To do / Known issues

FAQs

Last updated on 27 Feb 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc