Skip to content

Commit

Permalink
thumbnail hover text translate transition
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlyons committed Oct 10, 2024
1 parent dc13638 commit 7bb8abb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/PortfolioPreview.astro
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ const { data, slug } = Astro.props.project;
px-5 py-3 text-white opacity-0 transition-opacity group-hover:opacity-100
group-focus-visible:opacity-100"
>
{data.title}
<div
class="inline-block -translate-x-full font-medium transition-transform group-hover:translate-x-0"
>
{data.title}
</div>
</div>
</a>

0 comments on commit 7bb8abb

Please sign in to comment.