Skip to content

Commit

Permalink
refactor: fade in code example
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Sep 1, 2024
1 parent c597315 commit 54a7cdd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,13 @@ export default function Home(): JSX.Element
{largeDisplay
&& (
<Hero.Header banner>
<div className="container">
<motion.div
transition={{ duration: 0.5, delay: 0.15 }}
initial={{ opacity: 0 }}
whileInView={{ opacity: 1 }}
viewport={{ once: true }}
className="container"
>
<TypeAnimation
wrapper="h1"
deletionSpeed={10}
Expand All @@ -188,7 +194,7 @@ export default function Home(): JSX.Element
>
<CodeBlock language="cpp">{exampleCode}</CodeBlock>
</div>
</div>
</motion.div>
</Hero.Header>
)}
</Layout>
Expand Down

0 comments on commit 54a7cdd

Please sign in to comment.