50projects50days/rotating-nav-animation/script.js
2020-10-26 14:15:19 -04:00

7 lines
300 B
JavaScript

const open = document.getElementById('open')
const close = document.getElementById('close')
const container = document.querySelector('.container')
open.addEventListener('click', () => container.classList.add('show-nav'))
close.addEventListener('click', () => container.classList.remove('show-nav'))