B
B
b_efimenko2014-11-08 11:39:03
css
b_efimenko, 2014-11-08 11:39:03

How to make fade effect for bootstrap slider?

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

1 answer(s)
I
Igor Pushkarsky, 2014-11-08
@RainMEN

Write for .item transition: opacity 0.3s;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question