Skip to content

Commit

Permalink
🎨 style(BlogPost.astro): update title class to include opacity-0 to h…
Browse files Browse the repository at this point in the history
…ide the title initially

🎨 style(BlogPost.astro): update animate selector from 'h1' to '.title' to target the updated title class
  • Loading branch information
danielcgilibert committed Aug 14, 2023
1 parent c033d3f commit eb2d893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layouts/BlogPost.astro
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const articleDate = pubDate.toISOString()
- {readTime}
</p>
</div>
<h1 class='text-center text-4xl md:text-6xl md:pb-2.5 font-semibold'>
<h1 class='title text-center text-4xl md:text-6xl md:pb-2.5 font-semibold opacity-0'>
{title}
</h1>
</div>
Expand Down Expand Up @@ -94,7 +94,7 @@ const articleDate = pubDate.toISOString()
import { animate } from 'motion'

animate(
'h1',
'.title',
{
opacity: [0, 1],
clipPath: ['polygon(0 0, 0 0, 0 100%, 0% 100%)', 'polygon(100% 0, 0 0, 0 100%, 100% 100%)']
Expand Down

0 comments on commit eb2d893

Please sign in to comment.