Skip to content

Commit

Permalink
fix: removes transition when mirroring an image.
Browse files Browse the repository at this point in the history
The animation was annoying when trying to scroll through a large list of
images.
  • Loading branch information
neomorphic committed Sep 10, 2024
1 parent d3126e3 commit abb6832
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/ImagePlaceholder.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ export default function ImagePlaceholder({
const updatedStyle = mirrored
? {
...style,
transition: "transform .25s ease-in-out",
transform: "scaleX(-1)",
width: maxHeight ? "auto" : "100%",
height: maxHeight ? "100%" : "auto",
}
: {
...style,
transition: "transform .25s ease-in-out",
transform: "scaleX(1)",
width: maxHeight ? "auto" : "100%",
height: maxHeight ? "100%" : "auto",
Expand Down

0 comments on commit abb6832

Please sign in to comment.