B
B
b_efimenko2014-11-08 01:19:33
css
b_efimenko, 2014-11-08 01:19:33

How to make fade effect for bootstrap carousel?

I updated the bootstrap to 3.3 and now the fade effect code does not work
What bootstrap used to be I can’t say ....
Who knows how to do it or correct this one ..?

.carousel-fade .item {
      opacity: 0;
      -webkit-transition-property: opacity;
      -moz-transition-property: opacity;
      -o-transition-property: opacity;
      transition-property: opacity;
    }

    .carousel-fade .active {
      opacity: 1;
    }

    .carousel-fade .active.left,
    .carousel-fade .active.right {
      left: 0;
      opacity: 0;
      z-index: 1;
    }

    .carousel-fade .next.left,
    .carousel-fade .prev.right {
      opacity: 1;
    }

  .carousel-fade .carousel-control {
    z-index: 2;
  }


It does not slide, but everything changes very quickly, there is no smoothness in the effect.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor Belikov, 2014-11-21
@igorbelikov

codepen.io/transportedman/pen/NPWRGq

B
b_efimenko, 2014-11-08
@b_efimenko

doesn't anyone know?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question