bramkragten / swipe-card

Card that allows you to swipe throught multiple cards for Home Assistant Lovelace
234 stars 32 forks source link

Is it possible to get active card? #80

Open cbass27 opened 10 months ago

cbass27 commented 10 months ago

I'm specifically interested in the swiper.activeindex method as mentioned here. https://swiperjs.com/swiper-api#prop-swiper-activeIndex

I found an example of using this method from here. https://stackoverflow.com/questions/57175548/how-to-use-swiper-activeindex-with-if-condition

My goal is to setup something similar to the thumbs module/effect but from what I can see, that's not possible within Home Assistant. So I'm trying to figure out another way to have a main slider that when changed, will change the smaller slider (thumbs) as well.

Does anyone know if this is possible and have any code to share to accomplish this?

Thanks in advance,