diff --git a/snippets/shx-video-base.liquid b/snippets/shx-video-base.liquid index 155b3d1..2765f88 100644 --- a/snippets/shx-video-base.liquid +++ b/snippets/shx-video-base.liquid @@ -52,12 +52,11 @@ connectedCallback() { console.log('connected'); - this.video = this.querySelector('video'); - this.videoWrapper = video.closest('.shx-video__wrapper'); - //this.videoWrapper.addEventListener('click', this.togglePlay.bind(this)); + this.video = this.querySelector('video'); // get parrent with class "card-wrapper product-card-wrapper" this.productCard = video.closest('.product-card-wrapper'); + console.log(this.productCard); //hover effect this.productCard.addEventListener('mouseenter', this.hoverEffectIn.bind(this));