A
A
Alexey Karateev2019-08-16 14:19:59
css
Alexey Karateev, 2019-08-16 14:19:59

How to make opacity effect in owl-carousel?

Is it possible to pull this effect in owl-carousel? So that you can flip through and all avatars, except for one, received opacity.
5d5691371589b505639263.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Ankhena, 2019-08-16
@IVENTEYE

Demos have it all
You need to set all owl-item except the one with .center class transparency and transform.
And just like that, and not increase the current one (although, of course, it depends on the original size of the photos).

.owl-item:not(.center) {
  opacity: 0.5;
  transform: scale(0.6, 0.6);
}

V
Vladimir Golub, 2019-08-16
@RazerVG

.owl-item {
  opacity: .4;
}

.owl-item.center {
  opacity: 1;
  transform: scale(1.2, 1.2);
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question