Skip to content

Commit

Permalink
Rename css class to follow naming
Browse files Browse the repository at this point in the history
  • Loading branch information
nicped committed Jan 17, 2022
1 parent 5d8db17 commit b0f7f92
Show file tree
Hide file tree
Showing 22 changed files with 34 additions and 34 deletions.
4 changes: 2 additions & 2 deletions dist/css/swiffy-slider.css
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,11 @@
visibility: visible;
}

.swiffy-slider.slider-nav-autohide.slide-visible-first .slider-nav:not(.slider-nav-next) {
.swiffy-slider.slider-nav-autohide.slider-item-first-visible .slider-nav:not(.slider-nav-next) {
visibility: hidden;
}

.swiffy-slider.slider-nav-autohide.slide-visible-last .slider-nav.slider-nav-next {
.swiffy-slider.slider-nav-autohide.slider-item-last-visible .slider-nav.slider-nav-next {
visibility: hidden;
}

Expand Down
2 changes: 1 addition & 1 deletion dist/css/swiffy-slider.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/swiffy-slider.min.css.map

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

4 changes: 2 additions & 2 deletions dist/js/swiffy-slider.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export const swiffyslider = function() {
slides.forEach(slide => {
slide.isIntersecting ? slide.target.classList.add("slide-visible") : slide.target.classList.remove("slide-visible");
});
sliderElement.querySelector(".slider-container>*:first-child").classList.contains("slide-visible") ? sliderElement.classList.add("slide-visible-first") : sliderElement.classList.remove("slide-visible-first");
sliderElement.querySelector(".slider-container>*:last-child").classList.contains("slide-visible") ? sliderElement.classList.add("slide-visible-last") : sliderElement.classList.remove("slide-visible-last");
sliderElement.querySelector(".slider-container>*:first-child").classList.contains("slide-visible") ? sliderElement.classList.add("slider-item-first-visible") : sliderElement.classList.remove("slider-item-first-visible");
sliderElement.querySelector(".slider-container>*:last-child").classList.contains("slide-visible") ? sliderElement.classList.add("slider-item-last-visible") : sliderElement.classList.remove("slider-item-last-visible");
}, {
root: sliderElement.querySelector(".slider-container"),
threshold: threshold
Expand Down
2 changes: 1 addition & 1 deletion dist/js/swiffy-slider.esm.min.js

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

Loading

0 comments on commit b0f7f92

Please sign in to comment.