react-gsap-parallax
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -115,12 +115,12 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var makeTimeline = R.curry(function (keyframes, element) { | ||
var _normalizeKeyframes = normalizeKeyframes(keyframes), | ||
head = _normalizeKeyframes[0], | ||
tail = _normalizeKeyframes.slice(1); | ||
var normalizedKeyframeArray = normalizeKeyframes(keyframes); | ||
var head = normalizedKeyframeArray[0], | ||
tail = normalizedKeyframeArray.slice(1); | ||
debug('making timeline', { head: head, tail: tail }); | ||
return tail.reduce(function (timeline, keyframe, index, keyframes) { | ||
debug('making timeline', { head: head, tail: tail, keyframes: keyframes, normalizedKeyframeArray: normalizedKeyframeArray }); | ||
return tail.reduce(function (timeline, keyframe, index) { | ||
var value = keyframe.value; | ||
var previousKeyframe = keyframes[index]; | ||
debug('making keyframe', { previousKeyframe: previousKeyframe, value: value, element: element, keyframe: keyframe }); | ||
var previousKeyframe = normalizedKeyframeArray[index]; | ||
debug('adding keyframe to timeline', { previousKeyframe: previousKeyframe, value: value, element: element, keyframe: keyframe }); | ||
return timeline.to(element, previousKeyframe.duration, value); | ||
@@ -127,0 +127,0 @@ }, new TimelineLite().to(element, 0, head.value)); |
@@ -126,12 +126,12 @@ 'use strict'; | ||
var makeTimeline = _ramda2.default.curry(function (keyframes, element) { | ||
var _normalizeKeyframes = normalizeKeyframes(keyframes), | ||
head = _normalizeKeyframes[0], | ||
tail = _normalizeKeyframes.slice(1); | ||
var normalizedKeyframeArray = normalizeKeyframes(keyframes); | ||
var head = normalizedKeyframeArray[0], | ||
tail = normalizedKeyframeArray.slice(1); | ||
debug('making timeline', { head: head, tail: tail }); | ||
return tail.reduce(function (timeline, keyframe, index, keyframes) { | ||
debug('making timeline', { head: head, tail: tail, keyframes: keyframes, normalizedKeyframeArray: normalizedKeyframeArray }); | ||
return tail.reduce(function (timeline, keyframe, index) { | ||
var value = keyframe.value; | ||
var previousKeyframe = keyframes[index]; | ||
debug('making keyframe', { previousKeyframe: previousKeyframe, value: value, element: element, keyframe: keyframe }); | ||
var previousKeyframe = normalizedKeyframeArray[index]; | ||
debug('adding keyframe to timeline', { previousKeyframe: previousKeyframe, value: value, element: element, keyframe: keyframe }); | ||
return timeline.to(element, previousKeyframe.duration, value); | ||
@@ -138,0 +138,0 @@ }, new _gsap.TimelineLite().to(element, 0, head.value)); |
{ | ||
"name": "react-gsap-parallax", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "react-gsap-parallax React component", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
5431030