Jump to content
Search Community

pierrep-

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by pierrep-

  1. Hello !

     

    I have a problem, I have to make a kind of slider work that changes the slide when I click on the sidebar that has the color of the next slide.
    The first step works to switch from the first slide to the second one by changing the classes home-clr1 to home-clr2 in the html tag and slider__nav--1 to slider__nav--2 in the sidebar, but when switching to the second step (slide 2 to slide 3) they revert to home-clr1 and slider__nav--1 instead of switching to home-clr3 and slider__nav--3.

     

    I put an example on codepen attached to this message.

     

    Do you have an idea of the problem?

     

    Thanks in advance for your help! 🙂

    See the Pen ZELKgBB by pierrep- (@pierrep-) on CodePen

×
×
  • Create New...