Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsmarquee

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsmarquee

Javascript Marquee without dependencies

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
235
increased by5775%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 19 Jan 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc