vendredi 1 juillet 2016

Auto change text in Carousel

I want to create a 3d carousel. However, the challenge I'm facing is that I want it to change text each time it rotates. This text is gotten from a database. Every time it shows some text, the next time it reaches the same point, it will show some other text until it goes through the entire database, at which point it starts over. How can I do this exactly? I don't want to put a million div's either. I only want one div from which I can give it an id which gives it the text.

One thought I had was timing it. However there is a slight delay between the time the carousel starts and the time the page is loaded which will cause it to become out of sync. So, I'm looking for an alternative that doesn't require timing.

Aucun commentaire:

Enregistrer un commentaire