nav新增动画,修复潜在的性能和bug,优化动画流畅度

This commit is contained in:
2026-01-29 09:48:05 +08:00
parent 0a1bd07492
commit 2377e2dda2
6 changed files with 34 additions and 27 deletions

View File

@@ -14,7 +14,14 @@ export default function HeroSection() {
muted
playsInline
className="absolute inset-0 w-full h-full object-cover"
style={{ zIndex: 0 }}
style={{
zIndex: 0,
objectFit: 'cover',
objectPosition: 'center center',
minWidth: '100%',
minHeight: '100%',
transform: 'scale(1.1)'
}}
>
<source src="/hero-background.mp4" type="video/mp4" />
</video>