@react-spring/parallax
Advanced tools
Comparing version 9.0.0-canary.808.11.4be2ac3 to 9.0.0-canary.808.12.11b2708
@@ -90,3 +90,3 @@ 'use strict'; | ||
}); | ||
var translate3d = ctrl.get('translate').to(horizontal ? function (x) { | ||
var translate3d = ctrl.springs.translate.to(horizontal ? function (x) { | ||
return "translate3d(" + x + "px,0,0)"; | ||
@@ -102,3 +102,3 @@ } : function (y) { | ||
willChange: 'transform' | ||
}, _extends2[horizontal ? 'height' : 'width'] = '100%', _extends2[horizontal ? 'width' : 'height'] = ctrl.get('space'), _extends2.WebkitTransform = translate3d, _extends2.msTransform = translate3d, _extends2.transform = translate3d, _extends2), rest.style) | ||
}, _extends2[horizontal ? 'height' : 'width'] = '100%', _extends2[horizontal ? 'width' : 'height'] = ctrl.springs.space, _extends2.WebkitTransform = translate3d, _extends2.msTransform = translate3d, _extends2.transform = translate3d, _extends2), rest.style) | ||
})); | ||
@@ -105,0 +105,0 @@ })); |
@@ -70,3 +70,3 @@ import _extends from '@babel/runtime/helpers/esm/extends'; | ||
}); | ||
const translate3d = ctrl.get('translate').to(horizontal ? x => `translate3d(${x}px,0,0)` : y => `translate3d(0,${y}px,0)`); | ||
const translate3d = ctrl.springs.translate.to(horizontal ? x => `translate3d(${x}px,0,0)` : y => `translate3d(0,${y}px,0)`); | ||
return React.createElement(a.div, Object.assign({}, rest, { | ||
@@ -79,3 +79,3 @@ style: _extends({ | ||
[horizontal ? 'height' : 'width']: '100%', | ||
[horizontal ? 'width' : 'height']: ctrl.get('space'), | ||
[horizontal ? 'width' : 'height']: ctrl.springs.space, | ||
WebkitTransform: translate3d, | ||
@@ -82,0 +82,0 @@ msTransform: translate3d, |
{ | ||
"name": "@react-spring/parallax", | ||
"version": "9.0.0-canary.808.11.4be2ac3", | ||
"version": "9.0.0-canary.808.12.11b2708", | ||
"description": "Cross-platform animation engine for React", | ||
@@ -31,4 +31,4 @@ "keywords": [ | ||
"@babel/runtime": "^7.3.1", | ||
"@react-spring/shared": "9.0.0-canary.808.11.4be2ac3", | ||
"@react-spring/web": "9.0.0-canary.808.11.4be2ac3", | ||
"@react-spring/shared": "9.0.0-canary.808.12.11b2708", | ||
"@react-spring/web": "9.0.0-canary.808.12.11b2708", | ||
"use-memo-one": "^1.1.0" | ||
@@ -35,0 +35,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
43066
727
+ Added@react-spring/animated@9.0.0-canary.808.12.11b2708(transitive)
+ Added@react-spring/core@9.0.0-canary.808.12.11b2708(transitive)
+ Added@react-spring/shared@9.0.0-canary.808.12.11b2708(transitive)
+ Added@react-spring/web@9.0.0-canary.808.12.11b2708(transitive)
- Removed@react-spring/animated@9.0.0-canary.808.11.4be2ac3(transitive)
- Removed@react-spring/core@9.0.0-canary.808.11.4be2ac3(transitive)
- Removed@react-spring/shared@9.0.0-canary.808.11.4be2ac3(transitive)
- Removed@react-spring/web@9.0.0-canary.808.11.4be2ac3(transitive)