Hi there,
For a custom post type I need a small gallery that should be filled dynamically. So I thought why not try this with your ingenious slider element. And by rewinding the provider and the data-x-slide-goto
attribute this can be realized wonderfully.
The navigation with the thumbnails works perfect, the only real downer is that the current thumbnail element canât be styled as easily because it doesnât have an âactiveâ CSS class or attribute like the official pagination.
I know that you can layout the element with the high enough placed data-x-slide-context
attribute and the corresponding CSS variable --x-slide-current
. But this only works with a fixed number that has to be defined and it only works if you not placing this css to the custom css of the element. (Because of the removed spaces.)
#slider[style*="--x-slide-current: 1"] .tn-slide-1,
#slider[style*="--x-slide-current: 2"] .tn-slide-2,
#slider[style*="--x-slide-current: 3"] .tn-slide-3,
#slider[style*="--x-slide-current: 4"] .tn-slide-4
{
border: 2px solid red !important;
}
Can you add this âactiveâ status, or whatever to the current data-x-slide-goto
element, as with the standard pagination? I mean, that would be the purpose for offering the option of your own navigation.
Thanks in advance