feat(UI): 为页面添加淡入动画效果和搜索框样式优化

为多个页面添加页面加载时的淡入动画效果,提升用户体验
优化搜索框和下拉选择框的样式,使用form-floating布局
统一在DOM加载完成后添加page-transition类触发动画
This commit is contained in:
2025-07-07 23:13:18 +08:00
parent e5bcd5e039
commit 51d6fdc6ee
4 changed files with 102 additions and 6 deletions

View File

@@ -25,6 +25,22 @@ if (!$resultApps) {
} else {
?>
<!DOCTYPE html>
<style>
.page-transition {
animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
</style>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
@@ -42,7 +58,7 @@ if (!$resultApps) {
}
</style>
</head>
<body>
<body class="page-transition">
<!-- 导航栏 -->
<nav class="navbar navbar-expand-lg navbar-light blur-bg">
<div class="container">
@@ -125,6 +141,11 @@ if (!$resultApps) {
}
});
</script>
<script>
document.addEventListener('DOMContentLoaded', function() {
document.body.classList.add('page-transition');
});
</script>
</body>
</html>
<?php