Hi, I am trying to build this website [tutorial
The may problem I have is knowing which slide is the current, the next. I don’t know how to use the index in this situation. A second problem would be that I don’t know how to animate out the elements when the next slide is about to become the main slide.
Here is the code. I have replaced the images because I could not share those as well.