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

carousel-component

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

carousel-component - npm Package Compare versions

Comparing version 3.2.1 to 3.3.0

15

dist/index.js

@@ -1,2 +0,3 @@

var animationKeyframesIdName = "carousel-animation-keyframes";
import * as tslib_1 from "tslib";
var animationKeyframesIdName = 'carousel-animation-keyframes';
/**

@@ -8,6 +9,6 @@ * @public

if (!style) {
style = document.createElement("style");
style.type = "text/css";
style = document.createElement('style');
style.type = 'text/css';
style.id = animationKeyframesIdName;
document.getElementsByTagName("head")[0].appendChild(style);
document.getElementsByTagName('head')[0].appendChild(style);
}

@@ -20,3 +21,3 @@ style.innerHTML = "@keyframes move-left {\n 0% { left: " + -width * count + "px; }\n 100% { left: " + (width * num - width * count) + "px; }\n}\n@keyframes move-right {\n 0% { left: " + -width * count + "; }\n 100% { left: " + (-width * num - width * count) + "px; }\n}";

export function runAnimation(ul, timeout, keyframes, num, next) {
ul.style.animation = "";
ul.style.animation = '';
window.requestAnimationFrame(function () {

@@ -37,4 +38,4 @@ window.requestAnimationFrame(function () {

var rightItems = data.slice(0, actualCount);
data.unshift.apply(data, leftItems);
data.push.apply(data, rightItems);
data.unshift.apply(data, tslib_1.__spread(leftItems));
data.push.apply(data, tslib_1.__spread(rightItems));
}
{
"name": "carousel-component",
"version": "3.2.1",
"version": "3.3.0",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

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