pull/1/head
Jan Umbach 2024-05-31 00:20:38 +02:00
parent 8fc9d261ea
commit 4e4be610c8
1 changed files with 2 additions and 3 deletions

View File

@ -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));