100-project-100-days-website/100_projects/41-simple-animated-popup-box/js/main.js

6 lines
178 B
JavaScript
Raw Permalink Normal View History

2023-04-03 01:23:37 +03:00
let toggle = document.querySelector('.toggle');
let container = document.querySelector('.container');
toggle.onclick = function(){
container.classList.toggle('active');
}