Branimir• 240
@brane10
Posted
Hello, very good. I would recommend you to add some transition when opening and closing, to make it a little slower. And you could also optimize the logic in javascript using the ternary operator instead "if":
const imageSource = answer.classList.contains("hidden") ? "assets/images/icon-plus.svg" : "assets/images/icon-minus.svg";
btn.lastElementChild.setAttribute("src", imageSource);
I love your work :D
Marked as helpful
0