50projects50days/social-links/script.js

7 lines
295 B
JavaScript
Raw Normal View History

2020-10-29 14:42:14 +00:00
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'))