Hi everyone !
Hope you are fine.
I come to you because I am trying to make a carousel with images fading in / out.
I decided to use opacity (maybe it's not the best way to do it) and JS. I succeed to do something with JQuery but the performance were a disaster. Made my browser (chrome) crash.
Then I decided to make it with javascript and tried to realise something as light as possible (hard task).
But, when I thought my algorithm was good I was in front of 2 problems :
1) I don't succeed to make it infinite (not too hard to do)
2) I have an error during a loop : Cannot tween a null target.
I put some console.log everywhere at every stage but impossible to localise the moment where I am sending a null object to TweenLite. Dafuq
So, as you will see in my (short) codepen, am I missing something ?
I deeply thank you in advance for the time spend on my request.