small interaction

Ines Martin 11 months ago
parent 8a285d8b49 commit c31fc380239c6d15fa2de5f00ca90344860d2464
1 changed files with 3 additions and 0 deletions
+3-0js/main.js ADDED
View File
@@ -0,0 +1,3 @@
1+document.querySelectorAll("#projects li").forEach(li => {
2+ li.addEventListener("click", () => li.classList.toggle("open"));
3+});