Skip to content

Commit 8cbe06e

Browse files
committed
chore(website): improve perf on mobile
1 parent f4d99e5 commit 8cbe06e

File tree

1 file changed

+2
-2
lines changed
  • website/src/app/(local-pages)/example-playground

1 file changed

+2
-2
lines changed

website/src/app/(local-pages)/example-playground/code.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ ${tsx}
9999

100100
export function ExampleCode() {
101101
return (
102-
<div className="relative code-example w-full overflow-hidden">
102+
<div className="relative code-example w-full overflow-hidden opacity-0 animate-fade-in [animation-delay:5000ms] lg:animate-none">
103103
<Code code={code} toCopy={tsx} />
104104

105-
<div className="absolute inset-0 code-example-overlay pointer-events-none z-20 [animation-delay:5000ms]"></div>
105+
<div className="hidden lg:[display:unset] absolute inset-0 code-example-overlay pointer-events-none z-20 [animation-delay:5000ms]"></div>
106106

107107
{/* Anchor */}
108108
<div className="code-example-anchor absolute pointer-events-none w-px h-px -top-[5.5rem]" />

0 commit comments

Comments
 (0)