JavaScript animation engine
Revert removed spaces
Yuri FA93cb4b638ba4
diff --git a/src/index.js b/src/index.jsindex d26403f4..946d2af6 100644--- a/src/index.js+++ b/src/index.js@@ -126,7 +126,7 @@ function elastic(amplitude = 1, period = .5) {const a = minMax(amplitude, 1, 10);const p = minMax(period, .1, 2);return t => {- return (t === 0 || t === 1) ? t :+ return (t === 0 || t === 1) ? t :-a * Math.pow(2, 10 * (t - 1)) * Math.sin((((t - 1) - (p / (Math.PI * 2) * Math.asin(1 / a))) * (Math.PI * 2)) / p);}}@@ -262,7 +262,7 @@ const penner = (() => {]}- let eases = {+ let eases = {linear: [0.250, 0.250, 0.750, 0.750]}@@ -523,7 +523,7 @@ function getRectLength(el) {function getLineLength(el) {return getDistance(- {x: getAttribute(el, 'x1'), y: getAttribute(el, 'y1')},+ {x: getAttribute(el, 'x1'), y: getAttribute(el, 'y1')},{x: getAttribute(el, 'x2'), y: getAttribute(el, 'y2')});}@@ -858,7 +858,7 @@ let pausedInstances = [];let raf;const engine = (() => {- function play() {+ function play() {raf = requestAnimationFrame(step);}function step(t) {@@ -1270,4 +1270,4 @@ anime.easing = parseEasings;anime.penner = penner;anime.random = (min, max) => Math.floor(Math.random() * (max - min + 1)) + min;-export default anime;\ No newline at end of file+export default anime;