nav新增动画,修复潜在的性能和bug,优化动画流畅度
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user