Abhik• 4,840
@abhik-b
Posted
Hi Marta , your solution is amazing 🎉, it works great and it is responsive enough 🔥 , hover transitions work nicely !
** Just some opinions : **
- please give
max-width
to themain__container
so that it does not become too wide on large screens - instead of a
for
loop you can useforEach
to reduce your code:
btnToggle.addEventListener('click', () => {
btnToggle.classList.toggle('active');
containers.forEach(container=>{
container.classList.toggle('active-mode');
}
});
Overall it works great , Happy coding 😇 & Keep contributing these amazing solutions 🚀
2