Swiper slide with active class repeat id used for detail region

Is there a way to use, for example the id value when using dynamic slides inside swiper component.

Example:

I have a swiper component that uses a query to generate cards.
Slide 1 has dynamic id = 1 from db, slide 2 = 2 and so forth if they aren’t sorted.
When slide 2 get’s the active class meaning it is “centered” in the swiper(does not have “previous” or “next” classes that is), I should be able to use this id = 2 in detail region or var is also fine.
So as I swipe the “main” card will effect what shows in detail region or just change the var value so I can use it in other query.

All this without clicking or tapping, just because swiper adds active class to the “inview” slide

Hope that makes sense @Teodor and @George

Community Page
Last updated: