You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
opt: add scale animation to overlay content, fix text alignment issue in add system app overlay
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
const helpButton = document.getElementById('help-button');
|
||||
const helpOverlay = document.getElementById('help-overlay');
|
||||
const helpContent = document.querySelector('.help-menu');
|
||||
const closeHelp = document.getElementById('close-help');
|
||||
|
||||
// Open help menu
|
||||
@@ -8,11 +9,13 @@ helpButton.addEventListener("click", () => {
|
||||
helpOverlay.style.display = "flex";
|
||||
setTimeout(() => {
|
||||
helpOverlay.style.opacity = 1;
|
||||
helpContent.classList.add('open');
|
||||
}, 10);
|
||||
});
|
||||
|
||||
const hideHelpOverlay = () => {
|
||||
helpOverlay.style.opacity = 0;
|
||||
helpContent.classList.remove('open');
|
||||
document.body.classList.remove("no-scroll");
|
||||
setTimeout(() => {
|
||||
helpOverlay.style.display = "none";
|
||||
|
||||
Reference in New Issue
Block a user