Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Vanilla Javascript image thumbnail gallery Reply To: Vanilla Javascript image thumbnail gallery

#265917
gisesonia
Participant

Hi, after a lot of research I could create a thumbnail gallery with slider, unfortunally I didn’t get the job, but I learn something:

https://codepen.io/Gisesonia/pen/GyLGeL

What I don’t understand it’s that code:

 counter = (n + imgs.length) % imgs.length;

This week a youtube channel that I follow publish a solution much better, but doesn’t have the slider that was a requirement. If someone needed:

https://www.youtube.com/watch?v=afoxd5b0bJo

The book “Dom Scripting” is good but it’s outdated.