Speed up modal open animations

This commit is contained in:
thePR0M3TH3AN
2025-09-25 13:24:05 -04:00
parent ddd6e40696
commit 52553165d6
3 changed files with 10 additions and 3 deletions

View File

@@ -24,7 +24,7 @@
>
<!-- Top Bar (similar to video-modal) -->
<div
class="sticky top-0 bg-gradient-to-b from-black/80 to-transparent transition-transform duration-300 p-4 flex items-center justify-between"
class="sticky top-0 bg-gradient-to-b from-black/80 to-transparent transition-transform duration-150 p-4 flex items-center justify-between"
>
<h2 class="text-xl font-bold text-white">Share a Video</h2>
<button

View File

@@ -9,7 +9,7 @@
<!-- Navigation bar - sliding at top -->
<div
id="modalNav"
class="sticky top-0 z-60 bg-gradient-to-b from-black/80 to-transparent transition-transform duration-300"
class="sticky top-0 z-60 bg-gradient-to-b from-black/80 to-transparent transition-transform duration-150"
>
<div class="flex items-center px-6 py-4">
<button

View File

@@ -8,6 +8,7 @@
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
--modal-motion-duration: 160ms;
}
/* Core Styles */
@@ -137,7 +138,7 @@ header img {
display: flex;
flex-direction: column;
background-color: #0f172a;
animation: fadeIn 0.3s ease-in-out;
animation: fadeIn var(--modal-motion-duration) ease-out;
}
@keyframes fadeIn {
@@ -151,6 +152,12 @@ header img {
}
}
@media (prefers-reduced-motion: reduce) {
.modal-content {
animation-duration: 1ms;
}
}
/* Video Container */
.video-container {
width: 100%;