RizalArfiyan

owl.carousel.css

Apr 6th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.10 KB | None | 0 0
  1. /**
  2.  * Owl Carousel v2.2.1
  3.  * Copyright 2013-2017 David Deutsch
  4.  * Licensed under  ()
  5.  */
  6. /*
  7.  *  Owl Carousel - Core
  8.  */
  9. .owl-carousel {
  10.   display: none;
  11.   width: 100%;
  12.   -webkit-tap-highlight-color: transparent;
  13.   /* position relative and z-index fix webkit rendering fonts issue */
  14.   position: relative;
  15.   z-index: 1; }
  16.   .owl-carousel .owl-stage {
  17.     position: relative;
  18.     -ms-touch-action: pan-Y;
  19.     -moz-backface-visibility: hidden;
  20.     /* fix firefox animation glitch */ }
  21.   .owl-carousel .owl-stage:after {
  22.     content: ".";
  23.     display: block;
  24.     clear: both;
  25.     visibility: hidden;
  26.     line-height: 0;
  27.     height: 0; }
  28.   .owl-carousel .owl-stage-outer {
  29.     position: relative;
  30.     overflow: hidden;
  31.     /* fix for flashing background */
  32.     -webkit-transform: translate3d(0px, 0px, 0px); }
  33.   .owl-carousel .owl-wrapper,
  34.   .owl-carousel .owl-item {
  35.     -webkit-backface-visibility: hidden;
  36.     -moz-backface-visibility: hidden;
  37.     -ms-backface-visibility: hidden;
  38.     -webkit-transform: translate3d(0, 0, 0);
  39.     -moz-transform: translate3d(0, 0, 0);
  40.     -ms-transform: translate3d(0, 0, 0); }
  41.   .owl-carousel .owl-item {
  42.     position: relative;
  43.     min-height: 1px;
  44.     float: left;
  45.     -webkit-backface-visibility: hidden;
  46.     -webkit-tap-highlight-color: transparent;
  47.     -webkit-touch-callout: none; }
  48.   .owl-carousel .owl-item img {
  49.     display: block;
  50.     width: 100%; }
  51.   .owl-carousel .owl-nav.disabled,
  52.   .owl-carousel .owl-dots.disabled {
  53.     display: none; }
  54.   .owl-carousel .owl-nav .owl-prev,
  55.   .owl-carousel .owl-nav .owl-next,
  56.   .owl-carousel .owl-dot {
  57.     cursor: pointer;
  58.     cursor: hand;
  59.     -webkit-user-select: none;
  60.     -khtml-user-select: none;
  61.     -moz-user-select: none;
  62.     -ms-user-select: none;
  63.     user-select: none; }
  64.   .owl-carousel.owl-loaded {
  65.     display: block; }
  66.   .owl-carousel.owl-loading {
  67.     opacity: 0;
  68.     display: block; }
  69.   .owl-carousel.owl-hidden {
  70.     opacity: 0; }
  71.   .owl-carousel.owl-refresh .owl-item {
  72.     visibility: hidden; }
  73.   .owl-carousel.owl-drag .owl-item {
  74.     -webkit-user-select: none;
  75.     -moz-user-select: none;
  76.     -ms-user-select: none;
  77.     user-select: none; }
  78.   .owl-carousel.owl-grab {
  79.     cursor: move;
  80.     cursor: grab; }
  81.   .owl-carousel.owl-rtl {
  82.     direction: rtl; }
  83.   .owl-carousel.owl-rtl .owl-item {
  84.     float: right; }
  85.  
  86. /* No Js */
  87. .no-js .owl-carousel {
  88.   display: block; }
  89.  
  90. /*
  91.  *  Owl Carousel - Animate Plugin
  92.  */
  93. .owl-carousel .animated {
  94.   animation-duration: 1000ms;
  95.   animation-fill-mode: both; }
  96.  
  97. .owl-carousel .owl-animated-in {
  98.   z-index: 0; }
  99.  
  100. .owl-carousel .owl-animated-out {
  101.   z-index: 1; }
  102.  
  103. .owl-carousel .fadeOut {
  104.   animation-name: fadeOut; }
  105.  
  106. @keyframes fadeOut {
  107.   0% {
  108.     opacity: 1; }
  109.   100% {
  110.     opacity: 0; } }
  111.  
  112. /*
  113.  *  Owl Carousel - Auto Height Plugin
  114.  */
  115. .owl-height {
  116.   transition: height 500ms ease-in-out; }
  117.  
  118. /*
  119.  *  Owl Carousel - Lazy Load Plugin
  120.  */
  121. .owl-carousel .owl-item .owl-lazy {
  122.   opacity: 0;
  123.   transition: opacity 400ms ease; }
  124.  
  125. .owl-carousel .owl-item img.owl-lazy {
  126.   transform-style: preserve-3d; }
  127.  
  128. /*
  129.  *  Owl Carousel - Video Plugin
  130.  */
  131. .owl-carousel .owl-video-wrapper {
  132.   position: relative;
  133.   height: 100%;
  134.   background: #000; }
  135.  
  136. .owl-carousel .owl-video-play-icon {
  137.   position: absolute;
  138.   height: 80px;
  139.   width: 80px;
  140.   left: 50%;
  141.   top: 50%;
  142.   margin-left: -40px;
  143.   margin-top: -40px;
  144.   background: url("owl.video.play.png") no-repeat;
  145.   cursor: pointer;
  146.   z-index: 1;
  147.   -webkit-backface-visibility: hidden;
  148.   transition: transform 100ms ease; }
  149.  
  150. .owl-carousel .owl-video-play-icon:hover {
  151.   -ms-transform: scale(1.3, 1.3);
  152.       transform: scale(1.3, 1.3); }
  153.  
  154. .owl-carousel .owl-video-playing .owl-video-tn,
  155. .owl-carousel .owl-video-playing .owl-video-play-icon {
  156.   display: none; }
  157.  
  158. .owl-carousel .owl-video-tn {
  159.   opacity: 0;
  160.   height: 100%;
  161.   background-position: center center;
  162.   background-repeat: no-repeat;
  163.   background-size: contain;
  164.   transition: opacity 400ms ease; }
  165.  
  166. .owl-carousel .owl-video-frame {
  167.   position: relative;
  168.   z-index: 1;
  169.   height: 100%;
  170.   width: 100%; }
Advertisement
Add Comment
Please, Sign In to add comment