In my page I have some content which is displayed in slides. I’m wondering if there’s any possibility to open the slide content in certain slide? The usecase is to resume the visualization in the last slide that the user was seing.
I’d need to store in a variable in which slide the user is (I guess I could somehow do that with an action on the navigation icons) and then bind the initial visualization to that variable, but I am not sure where (if) I can do that. Any ideas?
Had the same problem recently - I was working on a gallery with a slider and wanted it to open on whatever image got clicked, but couldn’t figure out how to select the specific slide. My workaround was to just “shift” the array so the clicked image became the first item. Not perfect, but works pretty well - only real downside is if you’re using pagination dots, the highlighted one will always show as first instead of where that image actually sits in the original array.
If this is the example array [1,2,3,4,5,6,7,8,9] and click on 6, you need to get [6,7,8,9,1,2,3,4,5]. The logic splits the array at where you clicked, takes everything from there to the end, grabs everything from the start up to that point, and joins them together with the clicked part first.