Toggling Images
In this lecsson, we're going to start toggling images.
We'll cover the following...
We’re able to highlight different buttons based on the current active image. Let’s make the buttons functional by listening to click events on them. If clicked, we’ll update the activeImg
property to the index. We’ll also make the previous and next buttons functional. The goal is to allow the user to navigate between images with the pagination menu.