Socket
Socket
Sign inDemoInstall

jsmarquee

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jsmarquee

Javascript Marquee without dependencies


Version published
Weekly downloads
5
decreased by-28.57%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

jsmarquee

jsmarquee

About

jsmarquee is a pure javascript implementation of the old HTML marquee tag.

It is not tied to any css or javascript library, so it can be easily implemented on any frontend project.

Usage

Javascript setup

This is the default setup:

import Marquee from 'jsmarquee'

const m = new Marquee({
  element: '#marquee-demo',
  velocity: 1
})

m.run()

These are the accepted properties:

namevalue
elementstring with a query selector value
velocitynumber. integer usage is recommended

HTML and CSS setup

As said before, jsmarquee is not tied to any CSS library.

In order to work correctly this is the basic CSS needed:

<div class="my-marquee" id="marquee-demo">
    <div>
        content goes here. you can use any html tag, including images
    </div>
</div>
.my-marquee {
  overflow: hidden;
}

.my-marquee > div {
  display: inline-flex;
  position: relative;
}

Demo

TODO

License

jsmarquee is open-sourced software licensed under the MIT license.

Icons made by Alfredo Hernandez from www.flaticon.com

Keywords

FAQs

Last updated on 19 Jan 2020

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