Skip to content

Commit

Permalink
Only scaleX half the value when exiting.
Browse files Browse the repository at this point in the history
  • Loading branch information
patcon committed Oct 8, 2024
1 parent 7291611 commit 7f77241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stories/client-participation/TidCarouselV2.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const TidCarouselButton = ({ label, isShown, isSelected, handleClick, containerW
<span style={{
// 1s is rought estimate, but react-spring uses forces, not duration.
transition: "transform 1s ease-in-out",
transform: isShown ? "scaleX(1)" : "scaleX(0)",
transform: isShown ? "scaleX(1)" : "scaleX(0.5)",
// Needed in order to transform.
display: "inline-block",
}}>
Expand Down

0 comments on commit 7f77241

Please sign in to comment.