.container {
display: flex;
justify-content: space-between;
position: relative;
width: 100%;
height: 150px;
align-items: flex-end;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
}
.s-contacts {
width: 100%;
background: linear-gradient(261.88deg, #765D69 0%, rgba(118, 93, 105, 0.7) 100%);
display: flex;
flex-direction: column;
padding: 20px;
}
.contacts__socials {
display: flex;
justify-content: space-around;
margin: 20px;
}
.contacts__text {
margin: 20px;
}
.contacts__text p{
color: white;
}
.s-contacts__img {
text-align: center;
}
background.style.background = "none";
background.style.backgroundColor = "aqua";
var iconClick = document.querySelectorAll(".svg-btn");
iconClick[0].addEventListener("click", function () {
document.getElementById("book").classList.toggle("animate");
});
iconClick[1].addEventListener("click", function () {
document.getElementById("evr").classList.toggle("animate");
});
iconClick[2].addEventListener("click", function () {
document.getElementById("win").classList.toggle("animate");
});
iconClick[3].addEventListener("click", function () {
document.getElementById("gar").classList.toggle("animate");
});
let iconClick = document.querySelectorAll(".svg-btn");
iconClick.forEach(function (el){
el.addEventListener("click", function (event){
event.target.children[0].classList.toggle("animate")
})
})
.img
toggle
пишется так.