@import url(http://fonts.lug.ustc.edu.cn/css?family=Josefin+Sans:700); /* * Owl Carousel - Animate Plugin - http://owlcarousel.owlgraphic.com/ */ .owl-carousel .animated { -webkit-animation-duration: 1000ms; animation-duration: 1000ms; -webkit-animation-fill-mode: both; animation-fill-mode: both; } .owl-carousel .owl-animated-in { z-index: 0; } .owl-carousel .owl-animated-out { z-index: 1; } /*====START ANIMATION=====*/ @-webkit-keyframes zoom-effect { 0% { opacity: 1; -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 100% { opacity: 0; -webkit-transform: scale3d(1.5, 1.5, 1.5); transform: scale3d(1.5, 1.5, 1.5); } } @keyframes zoom-effect { 0% { opacity: 1; -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 100% { opacity: 0; -webkit-transform: scale3d(1.5, 1.5, 1.5); transform: scale3d(1.5, 1.5, 1.5); } } @-webkit-keyframes slide-out { 0% {transform: translate(-60px, 0px); opacity: 0;} 100% {transform: translate(0px, 0px); opacity: 1;} } @keyframes slide-out { 0% {transform: translate(-60px, 0px); opacity: 0; } 100% {transform: translate(0px, 0px); opacity: 1; } } @-webkit-keyframes slide-up { 0% {transform: translate(0px, 20px); opacity: 0;} 100% {transform: translate(0px, 0px); opacity: 1;} } @keyframes slide-up { 0% {transform: translate(0px, 20px); opacity: 0; } 100% {transform: translate(0px, 0px); opacity: 1; } } /*====END ANIMATION=====*/ /*=======CUSTOMIZED OWL CAROUSEL CSS============*/ .owl-carousel{ width: 100%; min-width: 768px; height: 100vh; margin: 0 auto; } .owl-carousel .zoom-effect { -webkit-animation-name: zoom-effect; animation-name: zoom-effect; } .owl-item{ opacity: 0; } .owl-item.active{ opacity: 1; } .owl-nav { margin-top: 10px; text-align: center; -webkit-tap-highlight-color: transparent; } .owl-nav [class*='owl-'] { color: white; font-size: 14px; margin: 5px; padding: 4px 7px; width: 20px; background: #d6d6d6; display: block; cursor: pointer; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .owl-nav [class*='owl-']:hover { background: #4dc7a0; color: white; text-decoration: none; } .owl-nav .disabled { opacity: 0.5; cursor: default; } .owl-nav.disabled + .owl-dots { margin-top: 10px; } .owl-dots { text-align: center; width: 20px; -webkit-tap-highlight-color: transparent; position: absolute; top: 21vw; right: 3%; } .owl-dots .owl-dot { display: inline-block; zoom: 1; *display: inline; } .owl-dots .owl-dot span { width: 20px; height: 20px; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; margin: 5px 7px; background: #fff; display: block; -webkit-backface-visibility: visible; -webkit-transition: opacity 200ms ease; -moz-transition: opacity 200ms ease; -ms-transition: opacity 200ms ease; -o-transition: opacity 200ms ease; transition: opacity 200ms ease; } .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span { background: #F2A922; } .owl-carousel .item { height: 100vh; width: 100%; color: #fff; background: #000; margin: 0 auto; } .owl-carousel .item img{ width: 100%; margin: 0; position: relative; right: 1vw; } /*=======text box============*/ .owl-item .item .text{ width: 100%; height: 100%; overflow: hidden; opacity: 0; position: absolute; z-index: 1; top: 20vw; right: 60vw; } .owl-item .item .text h1{ margin: 0; text-align: right; font-size: 4vw; color: #F2A922; text-shadow: 2px 2px 0 #000; font-family: 'Josefin Sans', sans-serif; } .owl-item .item .text p{ margin: 0; font-size: 1.8vw; text-align: right; opacity: 0; text-shadow: 2px 2px 0 #000; font-family: 'Josefin Sans', sans-serif; } /*=======active slide============*/ .owl-item.active .item .text{ -webkit-animation: slide-out 1.2s ease-out 0.7s ; -moz-animation: slide-out 1.2s ease-out 0.7s ; animation: slide-out 1.2s ease-out0.7s ; -webkit-animation-fill-mode: forwards; animation-fill-mode: forwards; } .owl-item.active .item .text p{ -webkit-animation: slide-up 1.2s ease-out 1s ; -moz-animation: slide-up 1.2s ease-out 1s; animation: slide-up 1.2s ease-out 1s; -webkit-animation-fill-mode: forwards; animation-fill-mode: forwards; } @media all and (max-width: 768px) { .owl-item .item .text h1{ font-size: 3em; } .owl-item .item .text p{ font-size: 1.5em; } .owl-item .item .text{ right: 50%; } }