@matiasluduena23
Posted
Hi @bdal90, Nice work! Just one advice.
- You can add a class call active to open and close the social icons. In your css file use
.social-media {display: none}
and add the class.social-media.active{ display: block}
to show the icons. And with javascript add the class with the toggle propperty
const shareBtnEl = document.querySelector('.share')
const socialMediaEl = document.querySelector('.social-media')
shareBtnEl.addEventListener('click', () => {
socialMediaEl.classList.toggle('active')
})
your social will open and close on click. This video could help you with JS link
If you want a good course for responsive layout do this It help me. Good code
Good code!
Marked as helpful
@bdal90
Posted
Many many thanks @matiasluduena23!