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

just-carousel

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

just-carousel - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

9

index.js

@@ -71,3 +71,5 @@ /* global module, window, document */

if (idx < 0) {
this._animate(1, 80, function () {
var pos = this.width / 100 / this.slides.length;
this._animate(pos, 80, function () {
self._animate(0, 80, function () {

@@ -85,5 +87,7 @@ onMovingEnd.call(self, {

if (idx + 1 > this.slides.length) {
var pos = this.width / 100 / this.slides.length;
var rightPoint = -100 / this.slides.length * (this.slides.length - 1);
this._animate(rightPoint - 1, 80, function () {
this._animate(rightPoint - pos, 80, function () {
self._animate(rightPoint, 80, function () {

@@ -330,3 +334,2 @@ onMovingEnd.call(self, {

var currentOffset = this.currentOffset * 1; // copy
// alert(start);

@@ -333,0 +336,0 @@ this._isAnimation = true;

{
"name": "just-carousel",
"version": "0.5.1",
"version": "0.5.2",
"description": "Just an 1-item-on-screen carousel that works naturally like an iOS/android desktops and nothing else.",

@@ -5,0 +5,0 @@ "license": "MIT",

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