diff --git a/src/index.js b/src/index.js index ec3914c..5c7bf6d 100644 --- a/src/index.js +++ b/src/index.js @@ -30,7 +30,7 @@ module.exports = class CssAnimationTimeline { staggerEach, }); } else { - document.querySelectorAll(selector) + [...document.querySelectorAll(selector)] .forEach((el) => { this._keyframes.push({ type: 'animate',