fix: css position

This commit is contained in:
chanx 2025-11-12 12:03:39 +08:00
parent d148aad82b
commit 79de01ae8d
2 changed files with 7 additions and 8 deletions

View file

@ -124,14 +124,6 @@ export const BgSvg = ({ isPaused = false }: { isPaused?: boolean }) => {
};
return (
<div className="absolute inset-0 overflow-hidden pointer-events-none ">
<style>
{`
.paused .animate-glow,
.paused .animate-highlight {
animation-play-state: paused;
}
`}
</style>
<div className="absolute top-0 left-0 right-0 w-full">
<div
className={`w-full ml-10 ${animationClass}`}

View file

@ -38,6 +38,13 @@
animation: highlight-flow 16s linear infinite;
}
.paused {
.animate-glow,
.animate-highlight {
animation-play-state: paused;
}
}
//////////////////////////////////////////////////////////////////////////
.perspective-1000 {
perspective: 1000px;