feat: animations on hove

This commit is contained in:
TrèsAbhi committed 2023-12-01 12:23:17 -06:00
1 parent 7ea5e444b3
commit bda0c4ef1b
4 files changed
+148 -126

No files matched your search

@@ -0,0 +1,30 @@
import { style } from '@vanilla-extract/css';
import { theme } from '../../../../../stitches.config';
export const listing = style({});
export const listingShadow = style({
boxShadow: `inset 0 -128px 128px -128px ${theme.colors.appBackground1}`,
[`.${listing}:hover &`]: {
boxShadow: `inset 0 0 128px -128px ${theme.colors.appBackground1}`,
},
});
export const listingLabel = style({
transition: `transform ${theme.durations.regular}`,
transform: 'translateY(0)',
[`.${listing}:hover &`]: {
transform: 'translateY(200%)',
},
});
export const listingImage = style({
transition: `transform ${theme.durations.regular}`,
transform: 'translateX(25%) translateY(0)',
[`.${listing}:hover &`]: {
transform: 'translateX(25%) translateY(10%)',
},
});