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

react-photostory

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-photostory - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

4

components/Swipe.js

@@ -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 @@ };

5

package.json

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

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