Skip to content

Commit

Permalink
style: reduce transition duration for smoother animations (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
mosch authored Jan 15, 2025
1 parent e8a949d commit 8a0bb27
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { SidebarBadge } from "./SidebarBadge.js";
import { SidebarCategory } from "./SidebarCategory.js";

export const navigationListItem = cva(
"flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
"flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent",
{
variants: {
isActive: {
Expand Down
2 changes: 1 addition & 1 deletion website/src/app/components/PreviewInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const PreviewInput = ({ sample }: { sample: string }) => {
<div>
<div
className={cn(
"fixed inset-0 transition duration-300 overflow-hidden pointer-events-none border-2 border-transparent text-transparent grid place-items-center text-4xl font-semibold",
"fixed inset-0 transition duration-200 overflow-hidden pointer-events-none border-2 border-transparent text-transparent grid place-items-center text-4xl font-semibold",
isDragging &&
"bg-black/35 text-stroke border-white/10 border-dashed text-white",
)}
Expand Down
2 changes: 1 addition & 1 deletion website/src/app/components/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ Ctrl+C to exit
/>
</Frame>
<Frame
className="lg:absolute lg:left-0 lg:right-0 lg:translate-x-[25%] lg:-translate-y-[10%] overflow-hidden border border-gray-800 lg:scale-90 hover:scale-95 transition duration-300 ease-in-out drop-shadow-lg h-min"
className="lg:absolute lg:left-0 lg:right-0 lg:translate-x-[25%] lg:-translate-y-[10%] overflow-hidden border border-gray-800 lg:scale-90 hover:scale-95 transition duration-200 ease-in-out drop-shadow-lg h-min"
innerPadding={false}
>
<Image src={DocsScreenshot} alt="" />
Expand Down

0 comments on commit 8a0bb27

Please sign in to comment.