Socket
Socket
Sign inDemoInstall

dynamic-marquee

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynamic-marquee - npm Package Compare versions

Comparing version 2.0.2 to 2.1.0

12

dist/dynamic-marquee.js

@@ -247,3 +247,6 @@ (function (global, factory) {

_ref$upDown = _ref.upDown,
upDown = _ref$upDown === void 0 ? false : _ref$upDown;
upDown = _ref$upDown === void 0 ? false : _ref$upDown,
_ref$startOnScreen = _ref.startOnScreen,
startOnScreen =
_ref$startOnScreen === void 0 ? false : _ref$startOnScreen;

@@ -254,3 +257,3 @@ _classCallCheck(this, Marquee);

this._waitingForItem = true;
this._nextItemImmediatelyFollowsPrevious = false;
this._nextItemImmediatelyFollowsPrevious = startOnScreen;
this._rate = rate;

@@ -586,2 +589,7 @@ this._lastEffectiveRate = rate;

if (
this._nextItemImmediatelyFollowsPrevious &&
!this._items.length
) {
this._leftItemOffset = containerSize;
} else if (
!this._nextItemImmediatelyFollowsPrevious &&

@@ -588,0 +596,0 @@ this._items.length &&

2

package.json
{
"name": "dynamic-marquee",
"version": "2.0.2",
"version": "2.1.0",
"description": "A small library for creating marquees.",

@@ -5,0 +5,0 @@ "main": "./dist/dynamic-marquee.js",

@@ -63,2 +63,3 @@ [![npm version](https://badge.fury.io/js/dynamic-marquee.svg)](https://badge.fury.io/js/dynamic-marquee)

upDown: true, // downwards instead of to the right
startOnScreen: false, // start on screen
});

@@ -65,0 +66,0 @@ ```

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