Skip to content

Commit

Permalink
fix: bgOpacity
Browse files Browse the repository at this point in the history
  • Loading branch information
MinJieLiu committed Feb 27, 2022
1 parent c19d6ac commit caee41a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/react-photo-view/src/PhotoSlider.less
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
transition-property: background-color;
z-index: -1;
}

Expand Down
3 changes: 1 addition & 2 deletions packages/react-photo-view/src/PhotoSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,8 @@ export default function PhotoSlider(props: IPhotoSliderProps) {
}`}
style={{
background: `rgba(0, 0, 0, ${currentOpacity})`,
transitionProperty: touched ? undefined : 'background-color',
transitionTimingFunction: currentEasing,
transitionDuration: `${currentSpeed}ms`,
transitionDuration: `${touched ? 0 : currentSpeed}ms`,
animationDuration: `${currentSpeed}ms`,
}}
onAnimationEnd={onAnimationEnd}
Expand Down

1 comment on commit caee41a

@vercel
Copy link

@vercel vercel bot commented on caee41a Feb 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.