Dynamic content to return the number of visible slides in the viewport?

Hi @alexander!

I created a three-slide slider. Since each slide is visible on the desktop, pagination is not necessary. I was hoping for some string that I could hook into a condition to hide the pagination when three slides are visible. It seems that there is no such string. Or am I missing something? :slight_smile:

I could hide them on the desktop, but that feels like not the best solution.

Perhaps even better would be a native option so we could choose if we wish to hide the pagination when all slides are visible.

Thanks!

2 Likes

Hi @Misho,

Dynamic Content is determined when the page is rendered so it can’t really be used to apply element conditions. The `{{dc:rvt}} variants are special exceptions that simply output a span on the front end, so even we if had something for the number of slides shown, the most it could do is display that number after the page loads and wouldn’t be available for conditions. Unfortunately the best solution here is just to hide the pagination on different breakpoints.

2 Likes