Advertisement
nate_d

carousel

Jul 9th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.98 KB | None | 0 0
  1. .carousel-inner .active.left { left: -33%; }
  2. .carousel-inner .next        { left:  33%; }
  3. .carousel-inner .prev        { left: -33%; }
  4. .carousel-control.left,.carousel-control.right {background-image:none;}
  5.  
  6. .carousel-multi{
  7.     .carousel-inner{
  8.     > .item{
  9.       transition: 500ms ease-in-out left;
  10.      
  11.       > .media-card{
  12.         background: #333;
  13.         border-right: 10px solid #fff;
  14.               display: table-cell;
  15.               width: 1%;
  16.  
  17.         &:last-of-type{
  18.           border-right: none;
  19.         }
  20.       }
  21.     }
  22.     .active{
  23.       display: table;
  24.       &.left{
  25.         left:-33%;
  26.       }
  27.       &.right{
  28.         left:33%;
  29.       }
  30.     }
  31.     .next{
  32.       left: 33%;
  33.     }
  34.     .prev{
  35.       left: -33%;
  36.     }
  37.     @media all and (transform-3d), (-webkit-transform-3d) {
  38.       > .item{
  39.         // use your favourite prefixer here
  40.         transition: 500ms ease-in-out all;
  41.         backface-visibility: visible;
  42.         transform: none!important;
  43.       }
  44.     }
  45.   }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement