Hi, this doesn’t seem to be the intended output of the data-x-slide-context
property. Outputting into the style attribute doesn’t seem very useful. I was hoping that it would be output as a data attribute. Can you clarify if this is a bug or the intended behavior. Thanks!
Hello @adaptifyDesigns,
Thanks for writing in! The data-x-slide-context
should be added in your Slider Container if you have two or more sliders added in a single section. You can check out more about this attribute here: https://theme.co/docs/sliders#custom-attributes
By the way, please send us the URL of the page where you have added this attribute in your slider.
Thanks.
I have already read the documentation. Can you please add the attribute to a slider container on one of your test installs and see if you can replicate this? Are the --x-slide-current:1
and --x-slide-total:3
properties supposed to be output in the style
attribute? Is this the intended behavior? Or is this a bug? Please confirm.
My understanding of the documentation is that the data-x-slide-context
attribute can be applied to any parent element which contains the slider container element. I have applied it to the Column. See html structure below:
Hello @adaptifyDesigns,
Yes, when you add data-x-slide-context
to the slider container, the --x-slide-current:1
and --x-slide-total:3
is added to the slide container style when the slider gets rendered. Additionally, the --x-slide-distance:0; --x-slide-balance:0;
is also added in active slide.
One thing to note is that the context attribute is needed for navigation to work properly.
Best Regards.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.