test
parent
8fc9d261ea
commit
4e4be610c8
|
@ -52,12 +52,11 @@
|
||||||
|
|
||||||
connectedCallback() {
|
connectedCallback() {
|
||||||
console.log('connected');
|
console.log('connected');
|
||||||
this.video = this.querySelector('video');
|
this.video = this.querySelector('video');
|
||||||
this.videoWrapper = video.closest('.shx-video__wrapper');
|
|
||||||
//this.videoWrapper.addEventListener('click', this.togglePlay.bind(this));
|
|
||||||
|
|
||||||
// get parrent with class "card-wrapper product-card-wrapper"
|
// get parrent with class "card-wrapper product-card-wrapper"
|
||||||
this.productCard = video.closest('.product-card-wrapper');
|
this.productCard = video.closest('.product-card-wrapper');
|
||||||
|
console.log(this.productCard);
|
||||||
|
|
||||||
//hover effect
|
//hover effect
|
||||||
this.productCard.addEventListener('mouseenter', this.hoverEffectIn.bind(this));
|
this.productCard.addEventListener('mouseenter', this.hoverEffectIn.bind(this));
|
||||||
|
|
Loading…
Reference in New Issue