Skip to content

Commit

Permalink
lag issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rorschach7552 committed Sep 25, 2024
1 parent ba16432 commit d633c69
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions src/features/armor-optimization/components/PermutationsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,24 +44,16 @@ const StyledCard = styled(Card)(({ theme }) => ({
height: '18.5vh',
},
backgroundColor: 'rgba(0, 0, 0, 0.5)',
backdropFilter: 'blur(10px)',
alignItems: 'center',
justifyContent: 'center',
transition: 'all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1)',
transition: 'transform 0.2s ease-out, box-shadow 0.2s ease-out',
position: 'relative',
overflow: 'hidden',
willChange: 'transform, box-shadow',
':hover': {
cursor: 'pointer',
transform: 'scale(1.05) translateY(-5px)',
boxShadow: '0 15px 30px rgba(191, 149, 63, 0.4), 0 10px 10px rgba(191, 149, 63, 0.3)',
backgroundColor: 'rgba(0, 0, 0, 0.8)',
'&::before': {
opacity: 1,
},
'& > *': {
position: 'relative',
zIndex: 2,
},
transform: 'translateY(-3px)',
boxShadow: '0 6px 12px rgba(191, 149, 63, 0.2)',
},
'&::before': {
content: '""',
Expand All @@ -70,9 +62,13 @@ const StyledCard = styled(Card)(({ theme }) => ({
left: 0,
right: 0,
bottom: 0,
background: 'linear-gradient(45deg, rgba(191, 149, 63, 0.3), rgba(251, 245, 183, 0.1))',
background: 'linear-gradient(45deg, rgba(191, 149, 63, 0.1), rgba(251, 245, 183, 0.1))',
opacity: 0,
transition: 'opacity 0.3s ease',
transition: 'opacity 0.2s ease-out',
pointerEvents: 'none',
},
':hover::before': {
opacity: 1,
},
}));

Expand Down

0 comments on commit d633c69

Please sign in to comment.