-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the images come between each other #59
Comments
In case if this isn't a error, i need to know the correct way to use the slideshow. Thanks |
This seems related to #38. I'm still working on a fix for this. |
Yes, it is the same problem. Excuse me, I read it before publishing but I had not understood that it was the same. I see that problem comes from quite some time ago. Do not really look at your code 100%, but look at why I'm interested in solving this problem and if I can help you better. At first glance, in the first three lines of the goToSlide() I see that there is a double assignment to slideIndex: first Or maybe I should go through all the intermediate images before assigning the indicated one. If you give me explanations why I make this assignment in two parts instead of doing it once, I could keep thinking about how we can solve it. |
@kryne no problem, I am always happy to discuss. Basically, classes are assigned to create sliding animations. The logic goes like this -- goToSlide() is called, so go to the slide right before the slide that is desired ( Perhaps there is a better way or I need more checks to make sure things happen correctly. |
Exactly, as I understood it and clearly the problem is that. In my opinion it is wrong to assign the previous slide to the one that you want to see without performing the slide effect. As a quick solution I think I should go through all the intermediate slides before I get to the desired one. |
@gzoppo I just saw this but that is a good idea, I will try this! |
I'm going to close this though since it is a duplicate of #38 |
I start the component in image 0 and I have four images in the slide when I use the goToSlide (i) method, where i is equal to for example 3, image 2 and image 3 are shown at the same time.
The 2 is shown automatically, and the third enters with the effect of the slide.
The text was updated successfully, but these errors were encountered: