Fix save button animation

This commit is contained in:
KOWX712
2024-12-30 09:38:37 +08:00
parent fe64f37361
commit 1d5428e683
2 changed files with 7 additions and 1 deletions

View File

@@ -269,6 +269,7 @@ window.addEventListener('scroll', () => {
// Initial load // Initial load
document.addEventListener('DOMContentLoaded', async () => { document.addEventListener('DOMContentLoaded', async () => {
hideFloatingBtn();
adjustHeaderForMMRL(); adjustHeaderForMMRL();
getModuleVersion(); getModuleVersion();
await initializeAvailableLanguages(); await initializeAvailableLanguages();
@@ -281,6 +282,10 @@ document.addEventListener('DOMContentLoaded', async () => {
checkMagisk(); checkMagisk();
updateCheck(); updateCheck();
loadingIndicator.style.display = "none"; loadingIndicator.style.display = "none";
floatingBtn.style.opacity = '1';
setTimeout(() => {
floatingBtn.style.transform = 'translateY(0)';
}, 10);
document.getElementById("refresh").addEventListener("click", refreshAppList); document.getElementById("refresh").addEventListener("click", refreshAppList);
document.getElementById("aospkb").addEventListener("click", aospkb); document.getElementById("aospkb").addEventListener("click", aospkb);
document.querySelector('.uninstall-container').classList.remove('hidden-uninstall'); document.querySelector('.uninstall-container').classList.remove('hidden-uninstall');

View File

@@ -27,10 +27,11 @@ body {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
opacity: 0;
padding: 10px 20px; padding: 10px 20px;
font-size: 20px; font-size: 20px;
font-weight: bold; font-weight: bold;
transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
border-radius: 50px 50px; border-radius: 50px 50px;
overflow: hidden; overflow: hidden;
user-select: none; user-select: none;