document.getElementById("getStartedButton").addEventListener("click", function() {
document.querySelector(".description").classList.add("hide-description"); // Add class to hide description
document.getElementById("getStartedButton").classList.add("hide-button"); // Add class to hide button
setTimeout(function() {
document.querySelector(".about").classList.add("show-about"); // Add class to show 'about' section after transition ends
}, 2000); // Adjust this time to match the duration of the transition in CSS
});
Yusisista Minimap is a web-based application that provides students and visitors with easy access to navigate the UCC Congress campus, allowing them to locate desired facilities, offices, and rooms with ease and efficiency.
Get started
HIIIIIIIIIIIIIIIII
Я хочу, чтобы переход применялся ко всей странице, когда я нажимаю кнопку кнопка. я думаю о занавеске как о ориентире для перехода. Когда я нажимаю кнопку, вся страница сдвигается вверх, класс «Описание» и кнопка исчезают, как при переходе на страницу, и там отображается класс «О программе»
[code]document.getElementById("getStartedButton").addEventListener("click", function() { document.querySelector(".description").classList.add("hide-description"); // Add class to hide description document.getElementById("getStartedButton").classList.add("hide-button"); // Add class to hide button setTimeout(function() { document.querySelector(".about").classList.add("show-about"); // Add class to show 'about' section after transition ends }, 2000); // Adjust this time to match the duration of the transition in CSS });[/code] [code]body { background-color: black; }
.show-about { display: block; /* Show the 'about' section */ }[/code] [code]Yusisista Minimap is a web-based application that provides students and visitors with easy access to navigate the UCC Congress campus, allowing them to locate desired facilities, offices, and rooms with ease and efficiency.
Get started
HIIIIIIIIIIIIIIIII[/code]
Я хочу, чтобы переход применялся ко всей странице, когда я нажимаю кнопку кнопка. я думаю о занавеске как о ориентире для перехода. Когда я нажимаю кнопку, вся страница сдвигается вверх, класс «Описание» и кнопка исчезают, как при переходе на страницу, и там отображается класс «О программе»