100-project-100-days-website/100_projects/35-profile-card/js/main.js
2023-03-28 01:24:36 +03:00
Ask

11 lines
173 B
JavaScript

{faa21fe43d5eb7720c6d1f7dbd234694be871b28 true 173 main.js 0xc002ba44d0}

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