Input Tab Image based on previous [active-tab] image

Howdy all,

I am working on a project that uses custom code to autoplay between Tabs. To make the transitions between Tabs smooth, I have a [Div] inside the Tab container that shows [if] the given [tab] is active.

However, to make this work, the background-image of the ‘‘next to be active tab’’ has to match the background image of the ‘‘current active tab’’

I am looking for some jQuery help on this.

Link; https://preview.webflow.com/preview/tab-8f38b8?utm_medium=preview_link&utm_source=dashboard&utm_content=tab-8f38b8&preview=206b1582c2fb10b7841d355a1f219064&mode=preview

Any help is welcome ;D

For example;

The background image of tab 2 has to match the one from the [Div-image of tab 1] IF
the order is tab-1 to tab-2

However, IF the order is tab-3 to tab-2, The background image of tab 2 has to match the one from the [Div-image of tab 3]

@samliew

Hi Sam, i know youre good with tabs and slider, so i was wondering what you would recommend?

Anyone has a idea? ;D