It’s impossible to make up the slider dots in the right way so that it happens like this and when the slider switches to the next green line it moves along the white line. I use slider slick .

Any idea how to make a green border-top move along the white line?)

enter image description here

  • Provide a piece of code where the problem occurs. - edem
  • jsfiddle.net/hx2gwtm0 - here)) the slides jump, the line is not on the main line) in general shoals ((and the border-top disappears and appears and does not run along the line ( - pwnz22
  • @edem jsfiddle.net/hx2gwtm0/2 - it is necessary that the green lines be over white) and sort of wade through it when switching the slide - pwnz22

1 answer 1

I studied ES6 and somewhere I saw a similar task, for quick, for myself, I put a similar one https://jsfiddle.net/ob0hz4ga/1/ I think it will not be difficult to remake the old js (if needed) and for your task ... I understand that it's too late with the answer, but suddenly someone will come in handy for realizing the direction :) A piece of code so that you can leave a link to jsfiddle.net:

const nav =... 
  • I will try to remake on jQuery. The answer is good by the way) Better late than never) - pwnz22
  • one
    Cut out of work 10 minutes and redid the quick on JQ (of course, you can optimize / improve and etc., but you need a solution or direction for understanding :)) jsfiddle.net/ob0hz4ga/3 - BIM_KASSIR