Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/docs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function Docs() {
<For each={docs}>
{(doc) => (
<a href={doc.to}>
<Card class="h-full transition hover:border-primary hover:shadow-lg">
<Card class="h-full transition-[transform,border-color,box-shadow] duration-300 ease-out hover:-translate-y-1 hover:scale-[1.01] hover:border-primary/40 hover:shadow-lg">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pop effect is a bit sharp, i.e. it pops almost instantly and looks a bit off. These are the classes I used in the install page's distro cards:

transition-[border-color,box-shadow,translate,background-color] duration-200 hover:-translate-y-1 hover:border-primary/40 hover:bg-accent/30 hover:shadow-lg

Main thing is using translate in the transition instead of transform

<CardHeader>
<CardTitle>{doc.title}</CardTitle>
<CardDescription>{doc.description}</CardDescription>
Expand Down