Skip to content

Commit

Permalink
Drop card opacity animation
Browse files Browse the repository at this point in the history
  • Loading branch information
kubk committed Nov 7, 2023
1 parent 5e30f9a commit 1c05ec2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/screens/deck-review/review.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@ export const Review = observer(() => {
[-rotateBorder, 0, rotateBorder],
[theme.dangerLight, theme.secondaryBgColorComputed, theme.successLight],
);
const opacityFrontCard = useTransform(
x,
[
-rotateBorder * 5,
-rotateBorder * 3.5,
0,
rotateBorder * 3.5,
rotateBorder * 5,
],
[0, 1, 1, 1, 0],
);
const rotateFrontCard = useTransform(
x,
[-rotateBorder, 0, rotateBorder],
Expand Down Expand Up @@ -140,7 +129,6 @@ export const Review = observer(() => {
zIndex: 1,
backgroundColor: backgroundColorFrontCard,
rotate: rotateFrontCard,
opacity: opacityFrontCard,
}}
animate={{
x: frontCardX,
Expand Down

0 comments on commit 1c05ec2

Please sign in to comment.