J
J
jeanrus2021-02-14 19:03:23
css
jeanrus, 2021-02-14 19:03:23

How to remove blur in slick.js?

As the slides move, they turn into natural soap. Already tried useTransforms: false and useCSS: false when they do not move the slides at all

$('.slider').slick({
    speed:500,
    easing: 'ease-in-out',
    autoplay:true,
    autoplaySpeed:7500,
    touchTreshold:1,
    slidesToScroll:1,
    slidesToShow:3,
    touchMove:true,
    waitForAnimate:true,
    centerMode:true,
    variableWidth:true,
    useTransforms: false,
    useCSS: false,
  });

.slider {
  min-width: 0;
  max-width: 900px;
  position: relative;
  margin: 0 auto;
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  height: 340px;
  overflow: hidden;
}
.slick-track {
  display: flex;
  height: 280px;
  align-items: center;
  flex-direction: row;
}
.slick-arrow {
  height: 100%;
  width: 58px;
  position: absolute;
  font-size: 0;
  z-index: 12;
  background-color: transparent;
}
.slick-arrow:before,
.slick-arrow:after {
  content: '';
  background-color: #000;
  width: 1px;
  height: 35px;
  display: block;
  position: absolute;
  top: 50%;
}
.slick-arrow.slick-prev {
  left: 0;
  box-shadow: inset 36px 0px 21px -2px #fff;
}
.slick-arrow.slick-next {
  right: 0;
  box-shadow: inset -36px 0px 21px -2px #fff;
}
.slick-arrow.slick-prev:before {
  position: absolute;
  transform: skew(45deg);
  left: 25px;
}
.slick-arrow.slick-next:after {
  position: absolute;
  transform: skew(-45deg);
  right: 25px;
}
.slick-arrow.slick-next:before {
  transform: skew(45deg);
  position: absolute;
  right: 25px;
  margin-top: -35px;
}
.slick-arrow.slick-prev:after {
  position: absolute;
  transform: skew(-45deg);
  left: 25px;
  margin-top: -35px;
}
.slick-list {
  overflow: hidden;
}
.slider__item {
  background-color: #fff;
  box-shadow: 0px 0px 10px -7px #000;
  width: 200px;
  position: relative;
  height: 260px;
  overflow: hidden;
  margin: 0 40px;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
name surname, 2021-02-14
@jeanrus

add for .slider__itembackface-visibility: hidden;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question