100-project-100-days-website/100_projects/79-starbucks-landing/main.js
2023-05-11 22:37:33 +03:00
Ask

14 lines
447 B
JavaScript

{1792e189c4121203a4220c2a220f3bc0d9ca4ad2 true 447 main.js 0xc001fc0fc0}

function imgSlider(anything){
document.querySelector('.starbucks').src = anything;
}
function changeCircleColor(color){
const circle = document.querySelector('.circle');
circle.style.background = color;
}
function toggleMenu(){
const menuToggle = document.querySelector('.toggle');
const navigation = document.querySelector('.navigation');
menuToggle.classList.toggle('active');
navigation.classList.toggle('active');
}