Skip to content

Commit

Permalink
Fix glitch in safari, FF
Browse files Browse the repository at this point in the history
  • Loading branch information
adamplesnik committed Jan 16, 2025
1 parent a8a7bd7 commit 65d5592
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/components/WorkPreviewTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,16 @@ import Heading from './Heading'

const WorkPreviewTile = ({ title, className, link, src }: WorkPreviewTileProps) => {
return (
<Fade triggerOnce>
<Fade triggerOnce className="group relative">
<a
href={link}
className={clsx(
'group relative w-full overflow-hidden rounded-lg md:rounded-2xl',
className
)}
className={clsx('w-full overflow-hidden rounded-lg md:rounded-2xl', className)}
>
<div className="aspect-[2/1] overflow-hidden rounded-lg md:rounded-2xl">
<CustomImg
src={src}
alt={title}
className="transition-[transform,opacity] duration-[400ms] ease-in-out group-hover:scale-[1.02] group-hover:opacity-80"
className="transition-[transform,opacity] duration-[400ms] ease-in-out group-hover:scale-[1.02]"
/>
</div>
<Heading
Expand Down
Binary file modified src/content/martin/images/martin-home.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 65d5592

Please sign in to comment.