diff --git a/src/index.js b/src/index.js index ad32cd2..4ef1537 100644 --- a/src/index.js +++ b/src/index.js @@ -60,7 +60,7 @@ class MagicGrid { style.position = "absolute"; if (this.animate) { - style.transition = `${this.useTransform ? "transform" : "top, left"} 0.2s ease`; + style.transition = getComputedStyle(this.items[i]).transition + ", " + `${this.useTransform ? "transform" : "top, left"} 0.2s ease`; } }