100-project-100-days-website/100_projects/41-simple-animated-popup-box/js/main.js
2023-04-03 01:23:37 +03:00
Ask

6 lines
178 B
JavaScript

{a761ceeba778296ceca48cb8a98457fe4e4e6540 true 178 main.js 0xc00309fa40}

let toggle = document.querySelector('.toggle');
let container = document.querySelector('.container');
toggle.onclick = function(){
container.classList.toggle('active');
}