fix: update dependencies and improve animation transitions
- Updated @types/react to version 19.2.7 in package.json and package-lock.json. - Refined animation transitions in EnhancedButton, EnhancedInput, LoadingStates, Navbar, PageTransition, SkinCard, SkinDetailModal, and SkinViewer components by removing unnecessary ease properties for smoother animations. - Added size prop to EnhancedInput for better customization. - Enhanced SkinDetailModal and SkinCard styles for improved UI consistency.
This commit is contained in:
@@ -126,13 +126,13 @@ export default function Navbar() {
|
||||
ref={navbarRef}
|
||||
style={{
|
||||
y: isHidden ? navbarY : 0,
|
||||
opacity: navbarOpacity
|
||||
opacity: navbarOpacity,
|
||||
willChange: 'transform, opacity'
|
||||
}}
|
||||
initial={{ y: 0 }}
|
||||
animate={{ y: isHidden ? -100 : 0 }}
|
||||
transition={{ duration: 0.3, ease: 'easeInOut' }}
|
||||
className="fixed top-0 left-0 right-0 z-50 transition-all duration-300 bg-white/80 dark:bg-gray-800/80 backdrop-blur-lg border-b border-gray-200/50 dark:border-gray-700/50"
|
||||
style={{ willChange: 'transform' }}
|
||||
>
|
||||
{/* 滚动进度条 */}
|
||||
<motion.div
|
||||
|
||||
Reference in New Issue
Block a user