window.addEventListener('DOMContentLoaded', function() {
const burger = document.querySelector('.menu-button');
burger.addEventListener('click', (e) => {
e.currentTarget.classList.toggle('menu-button-active');
document.querySelector('.nav').classList.toggle('nav-opened');
document.querySelector('.nav').classList.contains('nav-opened')
? scrollLock.disablePageScroll()
: scrollLock.enablePageScroll()
});
});
.spoiler__button path {
transition: fill .7s ease-in-out;
+ fill: #ECECEC;
}