From ad435e709844a92dd8a4120a266db0974827f506 Mon Sep 17 00:00:00 2001 From: MattMo Date: Tue, 4 May 2021 22:15:31 -0700 Subject: [PATCH] Setting intersect observer to detect visibility and added delay. --- ignite-template.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ignite-template.js b/ignite-template.js index f4b010d..ec656c7 100644 --- a/ignite-template.js +++ b/ignite-template.js @@ -965,7 +965,7 @@ class IgniteTemplate { if (results[0].isIntersecting) { this._intersectObserverCallback.forEach(callback => callback(results[0])); } - }, { root: null}); + }, { root: null, trackVisibility: true, delay: 1000 }); this._intersectObserver.observe(this.element); }