JavaScript
3
Вклад в тег
const enter = document.getElementsByClassName('sign-in')[0];
const backgroundForm = document.getElementsByClassName('backgroundForm')[0];
const login = document.getElementsByClassName('login')[0];
enter.addEventListener('click', function() {
backgroundForm.classList.toggle('active');
login.classList.toggle('active');
});