@motionone/animation
Advanced tools
Comparing version 10.12.0 to 10.13.0
@@ -17,3 +17,3 @@ 'use strict'; | ||
// If already an easing function, return | ||
if (typeof definition === "function") | ||
if (utils.isFunction(definition)) | ||
return definition; | ||
@@ -20,0 +20,0 @@ // If an easing curve definition, return bezier function |
import { cubicBezier, steps } from '@motionone/easing'; | ||
import { noopReturn } from '@motionone/utils'; | ||
import { isFunction, noopReturn } from '@motionone/utils'; | ||
@@ -13,3 +13,3 @@ const namedEasings = { | ||
// If already an easing function, return | ||
if (typeof definition === "function") | ||
if (isFunction(definition)) | ||
return definition; | ||
@@ -16,0 +16,0 @@ // If an easing curve definition, return bezier function |
import { cubicBezier, steps } from "@motionone/easing"; | ||
import { noopReturn } from "@motionone/utils"; | ||
import { noopReturn, isFunction } from "@motionone/utils"; | ||
const namedEasings = { | ||
@@ -12,3 +12,3 @@ ease: cubicBezier(0.25, 0.1, 0.25, 1.0), | ||
// If already an easing function, return | ||
if (typeof definition === "function") | ||
if (isFunction(definition)) | ||
return definition; | ||
@@ -15,0 +15,0 @@ // If an easing curve definition, return bezier function |
{ | ||
"name": "@motionone/animation", | ||
"version": "10.12.0", | ||
"version": "10.13.0", | ||
"description": "A semi-polyfill WAAPI animation.", | ||
@@ -18,5 +18,5 @@ "license": "MIT", | ||
"dependencies": { | ||
"@motionone/easing": "^10.12.0", | ||
"@motionone/types": "^10.12.0", | ||
"@motionone/utils": "^10.12.0", | ||
"@motionone/easing": "^10.13.0", | ||
"@motionone/types": "^10.13.0", | ||
"@motionone/utils": "^10.13.0", | ||
"tslib": "^2.3.1" | ||
@@ -30,3 +30,3 @@ }, | ||
], | ||
"gitHead": "8a0f5fb27079e6306357f038b938a2a9f6d88c33" | ||
"gitHead": "40bc3d673c83ba5bf2fd0118c55db2389617d901" | ||
} |
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
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
37154
Updated@motionone/easing@^10.13.0
Updated@motionone/types@^10.13.0
Updated@motionone/utils@^10.13.0