Gallery
Task
Create an image gallery where the main image changes by the click on a thumbnail.
Requirements:
- A click can be either on a small
img
image or ona
outside of it.event.target
will be, respectively, eitherimg
ora
.
Notes:
- Use event delegation.
- You must only modify the file
src/scripts/main.js
andsrc/styles/main.scss
Gif of result
Read the guideline before start
Result