New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pietile-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

pietile-carousel - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

.DS_Store

4

CHANGELOG.md
# Changelog
## 1.2.1
- Handle case when children equal count
## 1.2.0

@@ -4,0 +8,0 @@

@@ -166,3 +166,7 @@ "use strict";

var translate;
if (index >= 0) {
if (!tail) {
startIndex = 0;
translate = 0;
}
else if (index >= 0) {
startIndex = (Math.floor(index / tail) * tail) % childrenCount;

@@ -169,0 +173,0 @@ translate = frameWidth * (index % tail);

{
"name": "pietile-carousel",
"version": "1.2.0",
"version": "1.2.1",
"description": "React Carousel",
"keywords": [
"react",
"carousel"
],
"license": "MIT",

@@ -6,0 +10,0 @@ "main": "dist/index.js",

5

README.md
# Pietile Carousel
[![npm version](https://badgen.net/bundlephobia/minzip/pietile-carousel)](https://bundlephobia.com/result?p=pietile-carousel@latest)
React carousel which tries to minimize amount of repaints and be simple in use.

@@ -13,6 +15,7 @@

- Сyclicality
- Tiny (2.1kB gzipped)
## Usage
Every item is wrapped in container where it can layout it's content. The size of container depends on the size of carousel and amount of visible items. You can use any styling system you want to set styles. Get ref and user moveLeft/moveRight/moveTo methods for scroll.
Every item is wrapped in container where it can layout it's content. The size of container depends on the size of carousel and amount of visible items. You can use any styling system you want to set styles. Get ref and use moveLeft/moveRight/moveTo methods for scroll.

@@ -19,0 +22,0 @@ ## Example

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