mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-12 20:26:10 +01:00
feat: even coooooooooler animations
This commit is contained in:
1 parent
20c839394a
commit
28e2139683
2 files changed
+34
-13
No files matched your search
@@ -1,7 +1,15 @@
|
||||
import { style } from '@vanilla-extract/css';
|
||||
import { theme } from '../../../stitches.config';
|
||||
|
||||
export const listing = style({});
|
||||
export const listing = style({
|
||||
transition: `background-position ${theme.durations.regular}`,
|
||||
|
||||
backgroundPosition: 'left center',
|
||||
|
||||
':hover': {
|
||||
backgroundPosition: '-256px center',
|
||||
},
|
||||
});
|
||||
|
||||
export const listingShadow = style({
|
||||
boxShadow: `inset 0 -128px 128px -128px ${theme.colors.appBackground1}`,
|
||||
@@ -22,9 +30,10 @@ export const listingLabel = style({
|
||||
|
||||
export const listingImage = style({
|
||||
transition: `transform ${theme.durations.regular}`,
|
||||
transform: 'translateX(25%) translateY(0)',
|
||||
position: 'absolute',
|
||||
left: '50%',
|
||||
|
||||
[`.${listing}:hover &, .${listing}:active &`]: {
|
||||
transform: 'translateX(25%) translateY(10%)',
|
||||
transform: 'translate(-25%, 10%)',
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user