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

react-gsap-parallax

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-gsap-parallax - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

14

es/makeTimeline.js

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

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