50projects50days/social-links/script.js
2020-10-29 10:42:14 -04:00

7 lines
295 B
JavaScript

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