Hover effect on images

This commit is contained in:
Elio Struyf
2023-03-15 13:12:08 +01:00
parent 73e1f21117
commit 143f8d799a
2 changed files with 2 additions and 2 deletions
@@ -117,7 +117,7 @@ export const Item: React.FunctionComponent<IItemProps> = ({
<img
src={`${pageData[PREVIEW_IMAGE_FIELD]}`}
alt={escapedTitle}
className="absolute inset-0 h-full w-full object-cover"
className="absolute inset-0 h-full w-full object-cover group-hover:brightness-75"
loading="lazy"
/>
) : (
@@ -447,7 +447,7 @@ export const Item: React.FunctionComponent<IItemProps> = ({
{renderMediaIcon}
</div>
<div
className={`absolute top-0 right-0 bottom-0 left-0 flex items-center justify-center`}
className={`absolute top-0 right-0 bottom-0 left-0 flex items-center justify-center group-hover:brightness-75`}
>
{renderMedia}
</div>