owl.carousel.css 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. /*
  2. * Owl Carousel Owl Demo Theme
  3. * v1.24
  4. */
  5. #owl-demo .item{
  6. }
  7. #owl-demo .item img{
  8. display: block;
  9. height: auto;
  10. padding: 10px;
  11. width: 100%;
  12. border: 1px solid #EEE;
  13. }
  14. #owl-demo1 .item{
  15. margin:1em 1em 0 0;
  16. }
  17. .owl-theme .owl-controls{
  18. margin-top: 10px;
  19. text-align: center;
  20. }
  21. /* Styling Next and Prev buttons */
  22. .owl-theme .owl-controls .owl-buttons div{
  23. color: #FFF;
  24. display: inline-block;
  25. zoom: 1;
  26. margin: 5px;
  27. padding: 3px 10px;
  28. font-size: 12px;
  29. width: 33px;
  30. height: 54px;
  31. z-index:999;
  32. }
  33. .owl-next{
  34. background: url(../images/slider-arrows.png) no-repeat -39px 0px;
  35. position: absolute;
  36. right: 4%;
  37. top:45%;
  38. z-index:999;
  39. }
  40. .owl-prev{
  41. background: url(../images/slider-arrows.png) no-repeat 0px 0px;
  42. position: absolute;
  43. left: 4%;
  44. top:45%;
  45. z-index:999;
  46. }
  47. /* Clickable class fix problem with hover on touch devices */
  48. /* Use it for non-touch hover action */
  49. .owl-theme .owl-controls.clickable .owl-buttons div:hover{
  50. filter: Alpha(Opacity=100);/*IE7 fix*/
  51. opacity: 1;
  52. text-decoration: none;
  53. }
  54. /* Styling Pagination*/
  55. .owl-theme .owl-controls .owl-page{
  56. display: inline-block;
  57. zoom: 1;
  58. *display: inline;/*IE7 life-saver */
  59. }
  60. .owl-theme .owl-controls .owl-page span{
  61. display: block;
  62. width: 20px;
  63. height: 7px;
  64. margin: 5px 7px;
  65. background: #e74c3c;
  66. }
  67. .owl-pagination {
  68. position: absolute;
  69. right: 0;
  70. }
  71. .owl-theme .owl-controls .owl-page.active span,
  72. .owl-theme .owl-controls.clickable .owl-page:hover span{
  73. background: #747474;
  74. }
  75. /* If PaginationNumbers is true */
  76. .owl-theme .owl-controls .owl-page span.owl-numbers{
  77. height: auto;
  78. width: auto;
  79. color: #FFF;
  80. padding: 2px 10px;
  81. font-size: 12px;
  82. -webkit-border-radius: 30px;
  83. -moz-border-radius: 30px;
  84. border-radius: 30px;
  85. }
  86. /* preloading images */
  87. .owl-item.loading{
  88. min-height: 150px;
  89. background: url(AjaxLoader.gif) no-repeat center center
  90. }
  91. /*
  92. * Core Owl Carousel CSS File
  93. * v1.24
  94. */
  95. /* clearfix */
  96. .owl-carousel .owl-wrapper:after {
  97. content: ".";
  98. display: block;
  99. clear: both;
  100. visibility: hidden;
  101. line-height: 0;
  102. height: 0;
  103. }
  104. /* display none until init */
  105. .owl-carousel{
  106. display: none;
  107. position: relative;
  108. -ms-touch-action: pan-y;
  109. margin: 0em auto;
  110. }
  111. .owl-carousel .owl-wrapper{
  112. display: none;
  113. position: relative;
  114. -webkit-transform: translate3d(0px, 0px, 0px);
  115. }
  116. .owl-carousel .owl-wrapper-outer{
  117. overflow: hidden;
  118. position: relative;
  119. width: 100%;
  120. }
  121. .owl-carousel .owl-wrapper-outer.autoHeight{
  122. -webkit-transition: height 500ms ease-in-out;
  123. -moz-transition: height 500ms ease-in-out;
  124. -ms-transition: height 500ms ease-in-out;
  125. -o-transition: height 500ms ease-in-out;
  126. transition: height 500ms ease-in-out;
  127. }
  128. .owl-carousel .owl-item{
  129. float: left;
  130. }
  131. .owl-controls .owl-page,
  132. .owl-controls .owl-buttons div{
  133. cursor: pointer;
  134. }
  135. .owl-controls {
  136. -webkit-user-select: none;
  137. -khtml-user-select: none;
  138. -moz-user-select: none;
  139. -ms-user-select: none;
  140. user-select: none;
  141. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  142. }
  143. /* mouse grab icon */
  144. .grabbing {
  145. cursor:url(grabbing.png) 8 8, move;
  146. }
  147. /* fix */
  148. .owl-carousel .owl-wrapper,
  149. .owl-carousel .owl-item{
  150. -webkit-backface-visibility: hidden;
  151. -moz-backface-visibility: hidden;
  152. -ms-backface-visibility: hidden;
  153. -webkit-transform: translate3d(0,0,0);
  154. -moz-transform: translate3d(0,0,0);
  155. -ms-transform: translate3d(0,0,0);
  156. }
  157. /* CSS3 Transitions */
  158. .owl-origin {
  159. -webkit-perspective: 1200px;
  160. -webkit-perspective-origin-x : 50%;
  161. -webkit-perspective-origin-y : 50%;
  162. -moz-perspective : 1200px;
  163. -moz-perspective-origin-x : 50%;
  164. -moz-perspective-origin-y : 50%;
  165. perspective : 1200px;
  166. }
  167. /* fade */
  168. .owl-fade-out {
  169. z-index: 10;
  170. -webkit-animation: fadeOut .7s both ease;
  171. -moz-animation: fadeOut .7s both ease;
  172. animation: fadeOut .7s both ease;
  173. }
  174. .owl-fade-in {
  175. -webkit-animation: fadeIn .7s both ease;
  176. -moz-animation: fadeIn .7s both ease;
  177. animation: fadeIn .7s both ease;
  178. }
  179. /* backSlide */
  180. .owl-backSlide-out {
  181. -webkit-animation: backSlideOut 1s both ease;
  182. -moz-animation: backSlideOut 1s both ease;
  183. animation: backSlideOut 1s both ease;
  184. }
  185. .owl-backSlide-in {
  186. -webkit-animation: backSlideIn 1s both ease;
  187. -moz-animation: backSlideIn 1s both ease;
  188. animation: backSlideIn 1s both ease;
  189. }
  190. /* goDown */
  191. .owl-goDown-out {
  192. -webkit-animation: scaleToFade .7s ease both;
  193. -moz-animation: scaleToFade .7s ease both;
  194. animation: scaleToFade .7s ease both;
  195. }
  196. .owl-goDown-in {
  197. -webkit-animation: goDown .6s ease both;
  198. -moz-animation: goDown .6s ease both;
  199. animation: goDown .6s ease both;
  200. }
  201. /* scaleUp */
  202. .owl-fadeUp-in {
  203. -webkit-animation: scaleUpFrom .5s ease both;
  204. -moz-animation: scaleUpFrom .5s ease both;
  205. animation: scaleUpFrom .5s ease both;
  206. }
  207. .owl-fadeUp-out {
  208. -webkit-animation: scaleUpTo .5s ease both;
  209. -moz-animation: scaleUpTo .5s ease both;
  210. animation: scaleUpTo .5s ease both;
  211. }
  212. /* Keyframes */
  213. /*empty*/
  214. @-webkit-keyframes empty {
  215. 0% {opacity: 1}
  216. }
  217. @-moz-keyframes empty {
  218. 0% {opacity: 1}
  219. }
  220. @keyframes empty {
  221. 0% {opacity: 1}
  222. }
  223. @-webkit-keyframes fadeIn {
  224. 0% { opacity:0; }
  225. 100% { opacity:1; }
  226. }
  227. @-moz-keyframes fadeIn {
  228. 0% { opacity:0; }
  229. 100% { opacity:1; }
  230. }
  231. @keyframes fadeIn {
  232. 0% { opacity:0; }
  233. 100% { opacity:1; }
  234. }
  235. @-webkit-keyframes fadeOut {
  236. 0% { opacity:1; }
  237. 100% { opacity:0; }
  238. }
  239. @-moz-keyframes fadeOut {
  240. 0% { opacity:1; }
  241. 100% { opacity:0; }
  242. }
  243. @keyframes fadeOut {
  244. 0% { opacity:1; }
  245. 100% { opacity:0; }
  246. }
  247. @-webkit-keyframes backSlideOut {
  248. 25% { opacity: .5; -webkit-transform: translateZ(-500px); }
  249. 75% { opacity: .5; -webkit-transform: translateZ(-500px) translateX(-200%); }
  250. 100% { opacity: .5; -webkit-transform: translateZ(-500px) translateX(-200%); }
  251. }
  252. @-moz-keyframes backSlideOut {
  253. 25% { opacity: .5; -moz-transform: translateZ(-500px); }
  254. 75% { opacity: .5; -moz-transform: translateZ(-500px) translateX(-200%); }
  255. 100% { opacity: .5; -moz-transform: translateZ(-500px) translateX(-200%); }
  256. }
  257. @keyframes backSlideOut {
  258. 25% { opacity: .5; transform: translateZ(-500px); }
  259. 75% { opacity: .5; transform: translateZ(-500px) translateX(-200%); }
  260. 100% { opacity: .5; transform: translateZ(-500px) translateX(-200%); }
  261. }
  262. @-webkit-keyframes backSlideIn {
  263. 0%, 25% { opacity: .5; -webkit-transform: translateZ(-500px) translateX(200%); }
  264. 75% { opacity: .5; -webkit-transform: translateZ(-500px); }
  265. 100% { opacity: 1; -webkit-transform: translateZ(0) translateX(0); }
  266. }
  267. @-moz-keyframes backSlideIn {
  268. 0%, 25% { opacity: .5; -moz-transform: translateZ(-500px) translateX(200%); }
  269. 75% { opacity: .5; -moz-transform: translateZ(-500px); }
  270. 100% { opacity: 1; -moz-transform: translateZ(0) translateX(0); }
  271. }
  272. @keyframes backSlideIn {
  273. 0%, 25% { opacity: .5; transform: translateZ(-500px) translateX(200%); }
  274. 75% { opacity: .5; transform: translateZ(-500px); }
  275. 100% { opacity: 1; transform: translateZ(0) translateX(0); }
  276. }
  277. @-webkit-keyframes scaleToFade {
  278. to { opacity: 0; -webkit-transform: scale(.8); }
  279. }
  280. @-moz-keyframes scaleToFade {
  281. to { opacity: 0; -moz-transform: scale(.8); }
  282. }
  283. @keyframes scaleToFade {
  284. to { opacity: 0; transform: scale(.8); }
  285. }
  286. @-webkit-keyframes goDown {
  287. from { -webkit-transform: translateY(-100%); }
  288. }
  289. @-moz-keyframes goDown {
  290. from { -moz-transform: translateY(-100%); }
  291. }
  292. @keyframes goDown {
  293. from { transform: translateY(-100%); }
  294. }
  295. @-webkit-keyframes scaleUpFrom {
  296. from { opacity: 0; -webkit-transform: scale(1.5); }
  297. }
  298. @-moz-keyframes scaleUpFrom {
  299. from { opacity: 0; -moz-transform: scale(1.5); }
  300. }
  301. @keyframes scaleUpFrom {
  302. from { opacity: 0; transform: scale(1.5); }
  303. }
  304. @-webkit-keyframes scaleUpTo {
  305. to { opacity: 0; -webkit-transform: scale(1.5); }
  306. }
  307. @-moz-keyframes scaleUpTo {
  308. to { opacity: 0; -moz-transform: scale(1.5); }
  309. }
  310. @keyframes scaleUpTo {
  311. to { opacity: 0; transform: scale(1.5); }
  312. }
  313. /*-- resposnive-design --*/
  314. @media(max-width:1024px){
  315. .owl-prev, .owl-next{
  316. top: 52%;
  317. }
  318. }
  319. @media(max-width:768px){
  320. #owl-demo .item img {
  321. width: 70%;
  322. margin: 0 auto;
  323. }
  324. }
  325. @media(max-width:480px){
  326. #owl-demo .item img {
  327. width: 90%;
  328. margin: 0 auto;
  329. }
  330. .owl-carousel{
  331. width:70%;
  332. }
  333. }
  334. @media(max-width:320px){
  335. .owl-prev{
  336. left:-20%;
  337. }
  338. .owl-next{
  339. right:-20%;
  340. }
  341. }