feat(UI): 为多个页面添加页面过渡动画效果

为router.php、admin/addapp.php、app.php、error_pages/404.html、error_pages/500.html、admin/login.php、developer/login.php、developer/profile.php和developer/dashboard.php添加fadeIn动画效果,提升用户体验
This commit is contained in:
2025-07-12 17:35:18 +08:00
parent da631ff924
commit 05e49f959a
9 changed files with 168 additions and 9 deletions

View File

@@ -61,6 +61,19 @@ if (!($conn instanceof mysqli)) {
margin: 0;
padding: 20px;
}
.page-transition {
animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.dashboard-container {
max-width: 1200px;
margin: 0 auto;
@@ -131,7 +144,7 @@ if (!($conn instanceof mysqli)) {
}
</style>
</head>
<body>
<body class="page-transition">
<!-- 导航栏 -->
<nav class="navbar navbar-expand-lg navbar-light blur-bg">
<div class="container">
@@ -211,5 +224,10 @@ if (!($conn instanceof mysqli)) {
</div>
<!-- Bootstrap JS and Popper -->
<script src="/js/bootstrap.bundle.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
document.body.classList.add('page-transition');
});
</script>
</body>
</html>