just-carousel
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -38,2 +38,3 @@ /* global module, window, document */ | ||
this.currentSlideIdx = 0; | ||
this.neededSlideIdx = null; | ||
this.animationDuration = 250; | ||
@@ -40,0 +41,0 @@ this.width = this.root.getBoundingClientRect().width; |
{ | ||
"name": "just-carousel", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"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", |
@@ -9,18 +9,18 @@ # just-carousel | ||
– No dependencies. | ||
– 1.6kb min + gzip, 8kb full. | ||
– Android 4+, WP8+, iOS 7+. | ||
– Wrote on es3 so must work on most desktop browsers (only requires support for `transform3d`). | ||
– Easy integration with React, Vue, etc. | ||
– Unblocking UI (carousel reacts on any user action at any time). For example you can make 3 fast swype in a row. | ||
– Based on percent-layout. It means that change of device orientation is occurring fast, because doesn't recalculate any | ||
* No dependencies. | ||
* 1.6kb min + gzip, 8kb full. | ||
* Android 4+, WP8+, iOS 7+. | ||
* Written on es3 so must work on most desktop browsers (only requires support for `transform3d`). | ||
* Easy integration with React, Vue, etc. | ||
* Unblocking UI (carousel reacts on any user action at any time). For example you can make 3 fast swype in a row. | ||
* Based on percent-layout. It means that change of device orientation is occurring fast, because doesn't recalculate any | ||
dimensions. Specially fine with responsive layout outside and inside of carousel. | ||
## Limitations | ||
– Supports only one slide on the screen at a time (but you can try to layout many items in each base slide). | ||
– No infinity mode (yet). | ||
— Doesn't have additional elements (like a prev/next arrows, cute little circles, etc). So you will have to do it | ||
yourself using api. | ||
– Doesn't react on mouse events. | ||
— You need to take care that all slides were the same height. | ||
* Supports only one slide on the screen at a time (but you can try to layout many items in each base slide). | ||
* No infinity mode (yet). | ||
* Doesn't have additional elements (like a prev/next arrows, cute little circles, etc). So you will have to do it | ||
yourself using api. | ||
* Doesn't react on mouse events. | ||
* You need to take care that all slides were the same height. | ||
@@ -89,2 +89,4 @@ Thus, this carousel will suit you, if you just need a lightweight, simple, 1-item-on-screen touch-carousel. | ||
MIT © [f0rmat1k](https://github.com/f0rmat1k) | ||
MIT © [f0rmat1k](https://github.com/f0rmat1k) | ||
Special thanks to [air-breathing](https://github.com/air-breathing). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13354
268
91