Advertisement
gentleman_byte

Owl carousel animation

Mar 31st, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.46 KB | None | 0 0
  1.      
  2.      
  3. /* Owl Carousel Content animation */
  4. .owl-carousel {
  5.   display: none;
  6.   position: relative;
  7.   width: 100%;
  8.   z-index: 1;
  9.   -webkit-tap-highlight-color: transparent;
  10. }
  11. .owl-carousel.owl-loaded {
  12.   display: block;
  13. }
  14. .owl-carousel .owl-stage {
  15.   position: relative;
  16.   -ms-touch-action: pan-Y;
  17.   -moz-backface-visibility: hidden;
  18. }
  19.  
  20. .owl-carousel .owl-stage::after {
  21.   display: block;
  22.   height: 0;
  23.   clear: both;
  24.   line-height: 0;
  25.   content: '.';
  26.   visibility: hidden;
  27. }
  28.  
  29. .owl-carousel .owl-stage-outer {
  30.   position: relative;
  31.   -webkit-transform: translate3d(0, 0, 0);
  32.   transform: translate3d(0, 0, 0);
  33.   overflow: hidden;
  34. }
  35.  
  36. .owl-carousel .owl-wrapper,
  37. .owl-carousel .owl-item {
  38.   -webkit-transform: translate3d(0, 0, 0);
  39.   transform: translate3d(0, 0, 0);
  40.   -webkit-backface-visibility: hidden;
  41.   backface-visibility: hidden;
  42. }
  43.  
  44.  
  45.    
  46. @-webkit-keyframes fadeInRight {
  47.   from {
  48.   opacity: 0;
  49.   -webkit-transform: translate3d(100%, 0, 0);
  50.   transform: translate3d(100%, 0, 0);
  51.   }
  52.  
  53.   to {
  54.   opacity: 1;
  55.   -webkit-transform: translate3d(0, 0, 0);
  56.   transform: translate3d(0, 0, 0);
  57.   }
  58. }
  59.  
  60. @keyframes fadeInRight {
  61.   from {
  62.   opacity: 0;
  63.   -webkit-transform: translate3d(100%, 0, 0);
  64.   transform: translate3d(100%, 0, 0);
  65.   }
  66.  
  67.   to {
  68.   opacity: 1;
  69.   -webkit-transform: translate3d(0, 0, 0);
  70.   transform: translate3d(0, 0, 0);
  71.   }
  72. }
  73.  
  74. .homepage-slides-wrap .owl-item.active .fade-right{
  75.   animation: fadeInRight 1s 1;
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement