Skip to content

armgit / anime

Public Imported from GitHub
0

JavaScript animation engine

set offset at 0 by default

Léandre PITON5e01d7f5658b
diff --git a/src/svg.js b/src/svg.js
index 674e4405..2cbc431c 100644
--- a/src/svg.js
+++ b/src/svg.js
@@ -217,9 +217,9 @@ const getPathProgess = ($path, pathProperty, offset = 0) => {
/**
* @param {TargetsParam} path
- * @param {Number} [offset]
+ * @param {Number} [offset=0]
*/
-const createMotionPath = (path, offset) => {
+const createMotionPath = (path, offset = 0) => {
const $path = getPath(path);
if (!$path) return;
return {