@apatheticwes/scrollify
Advanced tools
Comparing version 0.4.6 to 0.4.7
@@ -310,7 +310,2 @@ 'use strict'; | ||
// Effects that use matrix transformations. At present, only | ||
// built-in effects benefit from matrix transformations. | ||
var validTransforms = ['translateX', 'translateY', 'rotate', 'scale', 'parallax']; | ||
/** | ||
@@ -446,3 +441,3 @@ * The Scrollify Class | ||
// if any effect uses a matrix tranformation, we use true for the entire scene | ||
scene._applyTransform = scene._applyTransform || !!~validTransforms.indexOf(fn.name); | ||
scene._applyTransform = scene._applyTransform || fn._applyTransform; | ||
@@ -675,2 +670,9 @@ var curry = function (fn, options) { | ||
// Effects that use matrix transformations. At present, only | ||
// built-in effects benefit from matrix transformations. | ||
[translateX, translateY, rotate, scale, parallax].forEach(function (fn) { | ||
fn._applyTransform = true; | ||
}); | ||
/** | ||
@@ -714,3 +716,2 @@ * Translate an element along the X-axis. | ||
/** | ||
@@ -717,0 +718,0 @@ * Rotate an element, using radians. (note: rotates around Z-axis). |
@@ -306,7 +306,2 @@ /** | ||
// Effects that use matrix transformations. At present, only | ||
// built-in effects benefit from matrix transformations. | ||
var validTransforms = ['translateX', 'translateY', 'rotate', 'scale', 'parallax']; | ||
/** | ||
@@ -442,3 +437,3 @@ * The Scrollify Class | ||
// if any effect uses a matrix tranformation, we use true for the entire scene | ||
scene._applyTransform = scene._applyTransform || !!~validTransforms.indexOf(fn.name); | ||
scene._applyTransform = scene._applyTransform || fn._applyTransform; | ||
@@ -671,2 +666,9 @@ var curry = function (fn, options) { | ||
// Effects that use matrix transformations. At present, only | ||
// built-in effects benefit from matrix transformations. | ||
[translateX, translateY, rotate, scale, parallax].forEach(function (fn) { | ||
fn._applyTransform = true; | ||
}); | ||
/** | ||
@@ -710,3 +712,2 @@ * Translate an element along the X-axis. | ||
/** | ||
@@ -713,0 +714,0 @@ * Rotate an element, using radians. (note: rotates around Z-axis). |
@@ -309,7 +309,2 @@ (function () { | ||
// Effects that use matrix transformations. At present, only | ||
// built-in effects benefit from matrix transformations. | ||
var validTransforms = ['translateX', 'translateY', 'rotate', 'scale', 'parallax']; | ||
/** | ||
@@ -445,3 +440,3 @@ * The Scrollify Class | ||
// if any effect uses a matrix tranformation, we use true for the entire scene | ||
scene._applyTransform = scene._applyTransform || !!~validTransforms.indexOf(fn.name); | ||
scene._applyTransform = scene._applyTransform || fn._applyTransform; | ||
@@ -674,2 +669,9 @@ var curry = function (fn, options) { | ||
// Effects that use matrix transformations. At present, only | ||
// built-in effects benefit from matrix transformations. | ||
[translateX, translateY, rotate, scale, parallax].forEach(function (fn) { | ||
fn._applyTransform = true; | ||
}); | ||
/** | ||
@@ -713,3 +715,2 @@ * Translate an element along the X-axis. | ||
/** | ||
@@ -716,0 +717,0 @@ * Rotate an element, using radians. (note: rotates around Z-axis). |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "0.4.6", | ||
"version": "0.4.7", | ||
"description": "A simple thing for triggering 'them scroll effects that everybody loves", | ||
@@ -8,0 +8,0 @@ "main": "./dist/scrollify.cjs.js", |
@@ -15,2 +15,9 @@ /** | ||
// Effects that use matrix transformations. At present, only | ||
// built-in effects benefit from matrix transformations. | ||
[translateX, translateY, rotate, scale, parallax].forEach((fn) => { | ||
fn._applyTransform = true; | ||
}); | ||
/** | ||
@@ -54,3 +61,2 @@ * Translate an element along the X-axis. | ||
/** | ||
@@ -57,0 +63,0 @@ * Rotate an element, using radians. (note: rotates around Z-axis). |
@@ -14,7 +14,3 @@ /* | ||
// Effects that use matrix transformations. At present, only | ||
// built-in effects benefit from matrix transformations. | ||
const validTransforms = ['translateX', 'translateY', 'rotate', 'scale', 'parallax']; | ||
/** | ||
@@ -150,3 +146,3 @@ * The Scrollify Class | ||
// if any effect uses a matrix tranformation, we use true for the entire scene | ||
scene._applyTransform = scene._applyTransform || !!~validTransforms.indexOf(fn.name); | ||
scene._applyTransform = scene._applyTransform || fn._applyTransform; | ||
@@ -153,0 +149,0 @@ const curry = (fn, options) => { |
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
3971
774765
9