slit-slider.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. .sl-slide, .sl-slides-wrapper, .sl-slide-inner {
  2. position: absolute;
  3. width: 100%;
  4. height: 100%;
  5. top: 0;
  6. left: 0;
  7. }
  8. .sl-slider-wrapper {
  9. width: 100%;
  10. height: 600px;
  11. overflow: hidden;
  12. position: relative;
  13. }
  14. .bg-img {
  15. background-position: center center;
  16. background-repeat: no-repeat;
  17. background-size: cover;
  18. height: 100%;
  19. width: 100%;
  20. }
  21. /* Custom navigation arrows */
  22. .nav-arrows span {
  23. position: absolute;
  24. z-index: 2000;
  25. top: 50%;
  26. width: 40px;
  27. height: 40px;
  28. border: 8px solid #ddd;
  29. border: 8px solid rgba(150,150,150,0.4);
  30. text-indent: -90000px;
  31. margin-top: -40px;
  32. cursor: pointer;
  33. -webkit-transform: rotate(45deg);
  34. -moz-transform: rotate(45deg);
  35. -o-transform: rotate(45deg);
  36. -ms-transform: rotate(45deg);
  37. transform: rotate(45deg);
  38. }
  39. .nav-arrows span:hover {
  40. border-color: rgba(150,150,150,0.9);
  41. }
  42. .nav-arrows span.nav-arrow-prev {
  43. left: 5%;
  44. border-right: none;
  45. border-top: none;
  46. }
  47. .nav-arrows span.nav-arrow-next {
  48. right: 5%;
  49. border-left: none;
  50. border-bottom: none;
  51. }
  52. /* Custom navigation dots */
  53. .nav-dots {
  54. text-align: center;
  55. position: absolute;
  56. bottom: 2%;
  57. height: 30px;
  58. width: 100%;
  59. left: 0;
  60. z-index: 1000;
  61. }
  62. .nav-dots span {
  63. display: inline-block;
  64. position: relative;
  65. width: 16px;
  66. height: 16px;
  67. border-radius: 50%;
  68. margin: 3px;
  69. background: #ddd;
  70. background: rgba(150,150,150,0.4);
  71. cursor: pointer;
  72. box-shadow:
  73. 0 1px 1px rgba(255,255,255,0.4),
  74. inset 0 1px 1px rgba(0,0,0,0.1);
  75. }
  76. .nav-dots span {
  77. background: rgba(150,150,150,0.1);
  78. margin: 6px;
  79. -webkit-transition: all 0.2s;
  80. -moz-transition: all 0.2s;
  81. -ms-transition: all 0.2s;
  82. -o-transition: all 0.2s;
  83. transition: all 0.2s;
  84. box-shadow:
  85. 0 1px 1px rgba(255,255,255,0.4),
  86. inset 0 1px 1px rgba(0,0,0,0.1),
  87. 0 0 0 2px rgba(255,255,255,0.5);
  88. }
  89. .nav-dots span.nav-dot-current,
  90. .nav-dots span:hover {
  91. box-shadow:
  92. 0 1px 1px rgba(255,255,255,0.4),
  93. inset 0 1px 1px rgba(0,0,0,0.1),
  94. 0 0 0 5px rgba(255,255,255,0.5);
  95. }
  96. .nav-dots span.nav-dot-current:after {
  97. content: "";
  98. position: absolute;
  99. width: 10px;
  100. height: 10px;
  101. top: 3px;
  102. left: 3px;
  103. border-radius: 50%;
  104. background: rgba(255,255,255,0.8);
  105. }
  106. /* Animations for content elements */
  107. .sl-trans-elems .caption-content h2 {
  108. -webkit-animation: moveUp 1s ease-in-out both;
  109. -moz-animation: moveUp 1s ease-in-out both;
  110. -o-animation: moveUp 1s ease-in-out both;
  111. -ms-animation: moveUp 1s ease-in-out both;
  112. animation: moveUp 1s ease-in-out both;
  113. }
  114. .sl-trans-elems .caption-content span,
  115. .sl-trans-elems .caption-content a {
  116. -webkit-animation: fadeIn 0.5s linear 0.5s both;
  117. -moz-animation: fadeIn 0.5s linear 0.5s both;
  118. -o-animation: fadeIn 0.5s linear 0.5s both;
  119. -ms-animation: fadeIn 0.5s linear 0.5s both;
  120. animation: fadeIn 0.5s linear 0.5s both;
  121. }
  122. .sl-trans-back-elems .caption-content h2 {
  123. -webkit-animation: fadeOut 1s ease-in-out both;
  124. -moz-animation: fadeOut 1s ease-in-out both;
  125. -o-animation: fadeOut 1s ease-in-out both;
  126. -ms-animation: fadeOut 1s ease-in-out both;
  127. animation: fadeOut 1s ease-in-out both;
  128. }
  129. .sl-trans-back-elems .caption-content span,
  130. .sl-trans-back-elems .caption-content a {
  131. -webkit-animation: fadeOut 1s linear both;
  132. -moz-animation: fadeOut 1s linear both;
  133. -o-animation: fadeOut 1s linear both;
  134. -ms-animation: fadeOut 1s linear both;
  135. animation: fadeOut 1s linear both;
  136. }
  137. @-webkit-keyframes moveUp{
  138. 0% {-webkit-transform: translateY(40px);}
  139. 100% {-webkit-transform: translateY(0px);}
  140. }
  141. @-moz-keyframes moveUp{
  142. 0% {-moz-transform: translateY(40px);}
  143. 100% {-moz-transform: translateY(0px);}
  144. }
  145. @-o-keyframes moveUp{
  146. 0% {-o-transform: translateY(40px);}
  147. 100% {-o-transform: translateY(0px);}
  148. }
  149. @-ms-keyframes moveUp{
  150. 0% {-ms-transform: translateY(40px);}
  151. 100% {-ms-transform: translateY(0px);}
  152. }
  153. @keyframes moveUp{
  154. 0% {transform: translateY(40px);}
  155. 100% {transform: translateY(0px);}
  156. }
  157. @-webkit-keyframes fadeIn{
  158. 0% {opacity: 0;}
  159. 100% {opacity: 1;}
  160. }
  161. @-moz-keyframes fadeIn{
  162. 0% {opacity: 0;}
  163. 100% {opacity: 1;}
  164. }
  165. @-o-keyframes fadeIn{
  166. 0% {opacity: 0;}
  167. 100% {opacity: 1;}
  168. }
  169. @-ms-keyframes fadeIn{
  170. 0% {opacity: 0;}
  171. 100% {opacity: 1;}
  172. }
  173. @keyframes fadeIn{
  174. 0% {opacity: 0;}
  175. 100% {opacity: 1;}
  176. }
  177. @-webkit-keyframes fadeOut{
  178. 0% {opacity: 1;}
  179. 100% {opacity: 0;}
  180. }
  181. @-moz-keyframes fadeOut{
  182. 0% {opacity: 1;}
  183. 100% {opacity: 0;}
  184. }
  185. @-o-keyframes fadeOut{
  186. 0% {opacity: 1;}
  187. 100% {opacity: 0;}
  188. }
  189. @-ms-keyframes fadeOut{
  190. 0% {opacity: 1;}
  191. 100% {opacity: 0;}
  192. }
  193. @keyframes fadeOut{
  194. 0% {opacity: 1;}
  195. 100% {opacity: 0;}
  196. }