Improved performance for background animation
This commit is contained in:
1 parent
d599137947
commit
26a4d1aa51
1 file changed
+3
-3
@@ -33,13 +33,13 @@ export const AuroraBackground = ({
|
|||||||
dark:[background-image:var(--dark-gradient),var(--aurora)]
|
dark:[background-image:var(--dark-gradient),var(--aurora)]
|
||||||
[background-size:300%,_200%]
|
[background-size:300%,_200%]
|
||||||
[background-position:50%_50%,50%_50%]
|
[background-position:50%_50%,50%_50%]
|
||||||
filter blur-[10px] invert dark:invert-0
|
filter blur-[3px] invert dark:invert-0
|
||||||
after:content-[""] after:absolute after:inset-0 after:[background-image:var(--white-gradient),var(--aurora)]
|
after:content-[""] after:absolute after:inset-0 after:[background-image:var(--white-gradient),var(--aurora)]
|
||||||
after:dark:[background-image:var(--dark-gradient),var(--aurora)]
|
after:dark:[background-image:var(--dark-gradient),var(--aurora)]
|
||||||
after:[background-size:200%,_100%]
|
after:[background-size:200%,_100%]
|
||||||
after:animate-aurora after:[background-attachment:fixed] after:mix-blend-difference
|
after:animate-aurora after:mix-blend-difference
|
||||||
pointer-events-none
|
pointer-events-none
|
||||||
absolute -inset-[10px] opacity-50 will-change-transform`,
|
absolute inset-0 opacity-50 will-change-transform contain-layout`,
|
||||||
|
|
||||||
showRadialGradient &&
|
showRadialGradient &&
|
||||||
`[mask-image:radial-gradient(ellipse_at_100%_0%,black_10%,var(--transparent)_70%)]`,
|
`[mask-image:radial-gradient(ellipse_at_100%_0%,black_10%,var(--transparent)_70%)]`,
|
||||||
|
|||||||
Reference in new issue
Block a user