Skip to content

armgit / anime

Public Imported from GitHub
0

JavaScript animation engine

Add minimum a space character when recompose values

Arne Stappen255304df93e1
diff --git a/anime.js b/anime.js
index af715f80..e61847b7 100644
--- a/anime.js
+++ b/anime.js
@@ -453,7 +453,7 @@
}
function recomposeValue(numbers, strings) {
- return strings.reduce((a, b, i) => a + numbers[i - 1] + b);
+ return strings.reduce((a, b, i) => a + numbers[i - 1] + (b ? b : ' '));
}
// Animatables