Hi there! Thanks for the tutorial. How do you set multiple sliders on a single page? I've been trying to do so but only the first one works fine and the others just break down.
Sure, just choose different id and class names for each new slider in the html file. You might be able to get away with just choosing different id names. Try both just in case, its been a while since I did it so I cant remember forsure. And dont forget to add the new id names in the CSS file so the styles can apply to each new slider. Also create a variable for each slider in the javascript file. For example, you can have tnsSlider1 and tnsSlider2, otherwise your confusing the tiny slider library and it cant differentiate between each slider. Let me know if that helps
hi I tried creating but using PHP to access images from database it didn't work, the image slides became vertically aligned. May I know what went wrong?
Thank you for this, it helped me get through my project!!
hi thanks for sharing this. Just wondering how do you put a link in the name of each car?
Just use the a tag instead
Do I still need to move the names to html or is it possible to do the a tag in js?
Thanks wanted to do this did not know how
, during the second wave..
Very nice tutorial. Thank you for sharing. Your codepen does appear to be complete. Could you please put the source code in your github repository?
Hi there! Thanks for the tutorial. How do you set multiple sliders on a single page? I've been trying to do so but only the first one works fine and the others just break down.
Sure, just choose different id and class names for each new slider in the html file. You might be able to get away with just choosing different id names. Try both just in case, its been a while since I did it so I cant remember forsure. And dont forget to add the new id names in the CSS file so the styles can apply to each new slider. Also create a variable for each slider in the javascript file. For example, you can have tnsSlider1 and tnsSlider2, otherwise your confusing the tiny slider library and it cant differentiate between each slider. Let me know if that helps
@@codefoxx Super helpful. Thanks!
hi I tried creating but using PHP to access images from database it didn't work, the image slides became vertically aligned. May I know what went wrong?
I would need to see your code
@@codefoxx
PHP CODE
Did you initialize the slider correctly?