react-photostory
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -180,2 +180,6 @@ import React, { Component, PropTypes } from 'react' | ||
width: width ? `${children.length * width}px` : 'auto', | ||
WebkitTransform: `translateX(${-(currentIndex * width) - drag}px)`, | ||
MozTransform: `translateX(${-(currentIndex * width) - drag}px)`, | ||
msTransform: `translateX(${-(currentIndex * width) - drag}px)`, | ||
OTransform: `translateX(${-(currentIndex * width) - drag}px)`, | ||
transform: `translateX(${-(currentIndex * width) - drag}px)` | ||
@@ -182,0 +186,0 @@ } |
@@ -259,2 +259,6 @@ 'use strict'; | ||
width: width ? children.length * width + 'px' : 'auto', | ||
WebkitTransform: 'translateX(' + (-(currentIndex * width) - drag) + 'px)', | ||
MozTransform: 'translateX(' + (-(currentIndex * width) - drag) + 'px)', | ||
msTransform: 'translateX(' + (-(currentIndex * width) - drag) + 'px)', | ||
OTransform: 'translateX(' + (-(currentIndex * width) - drag) + 'px)', | ||
transform: 'translateX(' + (-(currentIndex * width) - drag) + 'px)' | ||
@@ -261,0 +265,0 @@ }; |
@@ -24,3 +24,3 @@ { | ||
"build:styles": "node-sass components --output dist", | ||
"build:watch": "babel --watch components --out-dir dist", | ||
"build:watch": "concurrently \"babel --watch components --out-dir dist\" \"node-sass --watch components --output dist\"", | ||
"docs": "build-storybook -o docs" | ||
@@ -56,2 +56,3 @@ }, | ||
"commitizen": "^2.8.6", | ||
"concurrently": "^3.1.0", | ||
"cz-conventional-changelog": "^1.2.0", | ||
@@ -89,3 +90,3 @@ "enzyme": "^2.4.1", | ||
}, | ||
"version": "0.4.0" | ||
"version": "0.4.1" | ||
} |
@@ -70,5 +70,5 @@ #react-photostory | ||
<Swipe className="photostory"> | ||
<Slide image="a.jpg" defaultImage="default1.jpg">Text 1</Slide> | ||
<Slide image="b.jpg" defaultimage="default2.jpg">Text 2</Slide> | ||
<Slide image="c.jpg" defaultimage="default3.jpg">Text 2</Slide> | ||
<LazyCard image="a.jpg" defaultImage="default1.jpg">Text 1</LazyCard> | ||
<LazyCard image="b.jpg" defaultimage="default2.jpg">Text 2</LazyCard> | ||
<LazyCard image="c.jpg" defaultimage="default3.jpg">Text 2</LazyCard> | ||
</Swipe> | ||
@@ -75,0 +75,0 @@ ) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
26897
574
35