Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/ImageSlider.js
Original file line number Diff line number Diff line change
@@ -35,6 +35,7 @@ const ImageSlider = ({ images, height }) => {
position: relative;
display: flex;
align-items: center;
justify-content: center;
height: ${height}px;
overflow: hidden;
${images.length === 1 && 'margin-bottom: 2rem;'}
@@ -114,6 +115,7 @@ const ImageSlider = ({ images, height }) => {
}}
enter={{ opacity: 1, transform: 'translate3d(-0%, 0px, 0px)' }}
leave={{
opacity: 0,
transform: `translate3d(${forward ? '-100%' : '100%'}, 0px, 0px)`,
}}
delay={200}

0 comments on commit 459daf2

Please sign in to comment.