This is in reference to a previous ticket I opened, which was closed before I had a chance to respond. Here is the original ticket: Data-x-slide-content Bug?
What is the purpose of having the --x-slide-current:1
and --x-slide-total:3
added to the slide container’s style attribute?
When these values are added to the style attribute, it makes it very difficult to use them for anything. I can’t target them with css, and it would be very cumbersome to target them with JS. So what’s the reason they are inserted into the element’s style attribute, as opposed to being added as data attributes with values? Then I could actually use them to target the slider container depending on what slide number was currently active.
What was the thought process here? Thanks.