Skip to content

Commit

Permalink
Merge pull request #175 from femioladeji/fix-ssr-flickering
Browse files Browse the repository at this point in the history
fix flickering on ssr
  • Loading branch information
femioladeji authored May 8, 2022
2 parents 0004e85 + d9a0020 commit c15df4f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-slideshow-image",
"version": "3.7.4",
"version": "3.7.5",
"author": "Femi Oladeji",
"description": "An image slideshow with react",
"files": [
Expand Down
6 changes: 3 additions & 3 deletions src/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
.react-slideshow-wrapper
.react-slideshow-fade-images-wrap
> div[aria-hidden='true'] {
visibility: hidden;
display: none;
}

.react-slideshow-wrapper.slide {
Expand All @@ -138,7 +138,7 @@
}

.react-slideshow-wrapper .images-wrap > div[aria-hidden='true'] {
visibility: hidden;
display: none;
}

.react-slideshow-zoom-wrapper {
Expand All @@ -163,5 +163,5 @@
}

.react-slideshow-zoom-wrapper .zoom-wrapper > div[aria-hidden='true'] {
visibility: hidden;
display: none;
}
2 changes: 1 addition & 1 deletion src/fade.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class Fade extends Component {
if (eachDiv) {
eachDiv.style.width = `${this.width}px`;
eachDiv.style.left = `${index * -this.width}px`;
eachDiv.style.visibility = `visible`;
eachDiv.style.display = `block`;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/slide.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class Slideshow extends Component {
applySlideStyle() {
this.allImages.forEach((eachImage, index) => {
eachImage.style.width = `${this.width}px`;
eachImage.style.visibility = `visible`;
eachImage.style.display = `block`;
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class Zoom extends Component {
if (eachDiv) {
eachDiv.style.width = `${this.width}px`;
eachDiv.style.left = `${index * -this.width}px`;
eachDiv.style.visibility = `visible`;
eachDiv.style.display = `block`;
}
}
}
Expand Down

0 comments on commit c15df4f

Please sign in to comment.