test
parent
8fc9d261ea
commit
4e4be610c8
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue