Slide number with total number of slides

Update sep 2020

Very tricky solution (Because “no way” to know if the slider change).

I find an idea - track the change of .w-slide “style” (Each slide change inline-style by code) - like this the counter will work on fade, auto, swipe, arrows an so on.

style="transform: translateX(-1730px); opacity: 1; transition: transform 500ms ease 0s;"`

attrchange is a simple jQuery plugin to bind a listener function on attribute change of an element. The handler function is triggered when an attribute is added, removed or modified to the element.

https://github.com/meetselva/attrchange

How to

webflow tree

To avoid duplicate versions of code - see answer 17 in this thread:

https://discourse.webflow.com/t/slide-number-with-total-number-of-slides/87083/17

10 Likes