Loading...
Обучение/Помощь новичкам | Не получается соединить JS

$('#auth-login-button').click(function(){
$('#auth-login-button').fadeOut("slow",function(){
$("#auth-container_animation").fadeIn();
TweenMax.from("#auth-container_animation", .4, { scale: 0, ease:Sine.easeInOut});
TweenMax.to("#auth-container_animation", .4, { scale: 1, ease:Sine.easeInOut});
});
});


const signUpButton = document.getElementById('auth-signUp');
const signInButton = document.getElementById('auth-signIn');
const container = document.getElementById('auth-container');

signUpButton.addEventListener('click', () => {
container.classList.add("auth-right-panel-active");
});

signInButton.addEventListener('click', () => {
container.classList.remove("auth-right-panel-active");
});


Код 2


function getOuterHTML (el) {
if (el.outerHTML) {
return el.outerHTML
} else {
var container = document.createElement('div');
container.appendChild(el.cloneNode(true));
return container.innerHTML
}
}


Как соединить код JS чтобы работала анимация с 1 кода! Для GTA 5 Rage RolePlay

Изображение

------
71709_gamesgrandtheftautov1585.jpg (87.1 Kb)
Скачиваний: 98

________
посл. ред. 16.04.2020 в 15:21; всего 4 раз(а); by wearnings
Онлайн: 8
Время:
Gen. 0.066
(c) Bym.Guru 2010-2026