How to get the width of a container?

Greetings all!

I’ve built a custom slider that works well at static sizes, but I want to make it a bit more dynamic.

To do so, I need to get the width of the parent Container. As I would with javascript via: object .style.width

But I can’t seem to find it in the API or code sense.

Thanks!

I couldn’t find a way to get the width of the container (box element in wix). What kind of dynamic response do you need? Have you tried Editor X?

We are using Editor X, I basically built similar mechanisms into a Repeater that the Pro Gallery offers (a slideshow). Because I wanted to animate repeated items, not pictures.

The Repeater itself is in 1x4 Horizontal grid, so the parent container isn’t always a static size. Even is Desktop mode, the panels are a percentage but the Repeater doesn’t handle that the same way, so I need to find a way to get the parent containers size, and make the repeating items animate that width.

I’ve got a ticket open with Wix, hopefully getting a width is easier than it seems!