INNER CODE UNIT · JavaScript
updateScreenClasses
Shrey113/Adb-Device-Manager-2 · pages/script.js:127
function updateScreenClasses(targetScreen, animationType) {
// If navigating to main, just hide all overlays
if (targetScreen === "main") {
appScreens.forEach((screen) => {
if (!screen.classList.contains("screen-main")) {
// Apply exit animation if it's currently active
if (screen.classList.contains("active")) {
screen.classList.remove("active");
screen.classList.add("animating-out");
// After animation, hide completely
setTimeout(() => {
screen.classList.remove("animating-out");
screen.style.display = "none";
}, 400);
}
}
});