_carousel.scss 486 Bytes
Newer Older
Isabella Skořepová's avatar
Isabella Skořepová committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 400px;
  perspective: 500px;
  transform-style: preserve-3d;
  transform-origin: 0% 50%;

  .carousel-item {
    width: 200px;
    position: absolute;
    top: 0;
    left: 0;

    img {
      width: 100%;
    }
  }

  &.carousel-slider {
    top: 0;
    left: 0;
    height: 0;

    .carousel-item {
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
    }
  }
}