sketzhbook

Widget Foto Slider

Apr 25th, 2020
769
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!-- SLIDER CSS -->
  2. <style type="text/css">
  3. /*
  4.  * jQuery FlexSlider v2.2.0
  5.  * http://www.woothemes.com/flexslider/
  6.  *
  7.  * Copyright 2012 WooThemes
  8.  * Free to use under the GPLv2 license.
  9.  * http://www.gnu.org/licenses/gpl-2.0.html
  10.  *
  11.  * Contributing author: Tyler Smith (@mbmufffin)
  12.  */
  13.  
  14.  
  15. /* Browser Resets
  16. *********************************/
  17.  
  18. .flex-container a:active,
  19. .flexslider a:active,
  20. .flex-container a:focus,
  21. .flexslider a:focus {
  22.     outline: none;
  23. }
  24.  
  25. .slides,
  26. .flex-control-nav,
  27. .flex-direction-nav {
  28.     margin: 0;
  29.     padding: 0;
  30.     list-style: none;
  31. }
  32.  
  33.  
  34. /* FlexSlider Necessary Styles
  35. *********************************/
  36.  
  37. .flexslider li {
  38.     border: 0 none !important;
  39.     padding: 0 !important;
  40.     text-indent: 0 !important;
  41.     margin-bottom: 0 !important;
  42. }
  43.  
  44. .flexslider {
  45.     margin: 0;
  46.     padding: 0;
  47. }
  48.  
  49. .flexslider .slides > li {
  50.     display: none;
  51.     -webkit-backface-visibility: hidden;
  52. }
  53.  
  54. #flex-isfb {
  55.     overflow: hidden;
  56.     position: relative;
  57.     min-height: 200px;
  58.     padding: 3px;
  59. }
  60.  
  61.  
  62. /* Hide the slides before the JS is loaded. Avoids image jumping */
  63.  
  64. .flexslider .slides img {
  65.     width: 100%;
  66.     display: block;
  67. }
  68.  
  69. .flexslider .slides,
  70. .flexslider .slides img,
  71. .flex-direction-nav {
  72.     margin: 0 !important;
  73.     padding: 0 !important;
  74. }
  75.  
  76. .flex-pauseplay span {
  77.     text-transform: capitalize;
  78. }
  79.  
  80.  
  81. /* Clearfix for the .slides element */
  82.  
  83. .slides:after {
  84.     content: "\0020";
  85.     display: block;
  86.     clear: both;
  87.     visibility: hidden;
  88.     line-height: 0;
  89.     height: 0;
  90. }
  91.  
  92. html[xmlns] .slides {
  93.     display: block;
  94. }
  95.  
  96. * html .slides {
  97.     height: 1%;
  98. }
  99.  
  100.  
  101. /* No JavaScript Fallback */
  102.  
  103.  
  104. /* If you are not using another script, such as Modernizr, make sure you
  105.  * include js that eliminates this class on page load */
  106.  
  107. .no-js .slides > li:first-child {
  108.     display: block;
  109. }
  110.  
  111.  
  112. /* FlexSlider Default Theme
  113. *********************************/
  114.  
  115. .flexslider {
  116.     margin: 0 0 60px;
  117.     background: #fff;
  118.     border: 4px solid #fff;
  119.     position: relative;
  120.     -webkit-border-radius: 4px;
  121.     -moz-border-radius: 4px;
  122.     -o-border-radius: 4px;
  123.     border-radius: 4px;
  124.     -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  125.     -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  126.     -o-box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  127.     box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  128.     zoom: 1;
  129. }
  130.  
  131. .flex-viewport {
  132.     max-height: 2000px;
  133.     -webkit-transition: all 1s ease;
  134.     -moz-transition: all 1s ease;
  135.     -o-transition: all 1s ease;
  136.     transition: all 1s ease;
  137. }
  138.  
  139. .loading .flex-viewport {
  140.     max-height: 300px;
  141. }
  142.  
  143. .flexslider .slides {
  144.     zoom: 1;
  145. }
  146.  
  147. .carousel li {
  148.     margin-right: 5px;
  149. }
  150.  
  151.  
  152. /* Direction Nav */
  153.  
  154. .flex-direction-nav {
  155.     *height: 0;
  156. }
  157.  
  158. .flex-direction-nav a {
  159.     text-decoration: none;
  160.     display: block;
  161.     width: 40px;
  162.     height: 45px;
  163.     margin: -20px 0 0;
  164.     position: absolute;
  165.     top: 50%;
  166.     z-index: 10;
  167.     overflow: hidden;
  168.     opacity: 0;
  169.     cursor: pointer;
  170.     color: rgba(0, 0, 0, 0.8);
  171.     text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
  172.     -webkit-transition: all .3s ease;
  173.     -moz-transition: all .3s ease;
  174.     transition: all .3s ease;
  175. }
  176.  
  177. .flex-direction-nav .flex-prev {
  178.     background: url("http://project.dimpost.com/flexslider-basic/img/arrows1.png") no-repeat scroll -15px -92px transparent;
  179.     left: -50px;
  180. }
  181.  
  182. .flex-direction-nav .flex-next {
  183.     background: url("http://project.dimpost.com/flexslider-basic/img/arrows1.png") no-repeat scroll -15px -15px transparent;
  184.     right: -50px;
  185.     text-align: right;
  186. }
  187.  
  188. .flexslider:hover .flex-prev {
  189.     opacity: 0.5;
  190.     left: 10px;
  191. }
  192.  
  193. .flexslider:hover .flex-next {
  194.     opacity: 0.5;
  195.     right: 10px;
  196. }
  197.  
  198. .flexslider:hover .flex-next:hover,
  199. .flexslider:hover .flex-prev:hover {
  200.     opacity: 0.9;
  201. }
  202.  
  203.  
  204. /* Pause/Play */
  205.  
  206. .flex-pauseplay a {
  207.     display: block;
  208.     width: 20px;
  209.     height: 20px;
  210.     position: absolute;
  211.     bottom: 5px;
  212.     left: 10px;
  213.     opacity: 0.8;
  214.     z-index: 10;
  215.     overflow: hidden;
  216.     cursor: pointer;
  217.     color: #000;
  218. }
  219.  
  220. .flex-pauseplay a:before {
  221.     font-family: "flexslider-icon";
  222.     font-size: 20px;
  223.     display: inline-block;
  224.     content: '\f004';
  225. }
  226.  
  227. .flex-pauseplay a:hover {
  228.     opacity: 1;
  229. }
  230.  
  231. .flex-pauseplay a.flex-play:before {
  232.     content: '\f003';
  233. }
  234.  
  235.  
  236. /* Control Nav */
  237.  
  238. .flex-control-nav {
  239.     width: 100%;
  240.     position: absolute;
  241.     bottom: -40px;
  242.     text-align: center;
  243. }
  244.  
  245. .flex-control-nav li {
  246.     margin: 0 6px;
  247.     display: inline-block;
  248.     zoom: 1;
  249.     *display: inline;
  250. }
  251.  
  252. .flex-control-paging li a {
  253.     width: 11px;
  254.     height: 11px;
  255.     display: block;
  256.     background: #666;
  257.     background: rgba(0, 0, 0, 0.5);
  258.     cursor: pointer;
  259.     text-indent: -9999px;
  260.     -webkit-border-radius: 20px;
  261.     -moz-border-radius: 20px;
  262.     -o-border-radius: 20px;
  263.     border-radius: 20px;
  264.     -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
  265.     -moz-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
  266.     -o-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
  267.     box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
  268. }
  269.  
  270. .flex-control-paging li a:hover {
  271.     background: #333;
  272.     background: rgba(0, 0, 0, 0.7);
  273. }
  274.  
  275. .flex-control-paging li a.flex-active {
  276.     background: #000;
  277.     background: rgba(0, 0, 0, 0.9);
  278.     cursor: default;
  279. }
  280.  
  281. .flex-control-thumbs {
  282.     margin: 5px 0 0;
  283.     position: static;
  284.     overflow: hidden;
  285. }
  286.  
  287. .flex-control-thumbs li {
  288.     width: 25%;
  289.     float: left;
  290.     margin: 0;
  291. }
  292.  
  293. .flex-control-thumbs img {
  294.     width: 100%;
  295.     display: block;
  296.     opacity: .7;
  297.     cursor: pointer;
  298. }
  299.  
  300. .flex-control-thumbs img:hover {
  301.     opacity: 1;
  302. }
  303.  
  304. .flex-control-thumbs .flex-active {
  305.     opacity: 1;
  306.     cursor: default;
  307. }
  308.  
  309. @media screen and (max-width: 860px) {
  310.     .flex-direction-nav .flex-prev {
  311.         opacity: 1;
  312.         left: 10px;
  313.     }
  314.     .flex-direction-nav .flex-next {
  315.         opacity: 1;
  316.         right: 10px;
  317.     }
  318. }
  319. </style>
  320. <!-- SLIDER HTML -->
  321. <div id="flex-isfb">
  322.     <!-- Preloader -->
  323.     <div id="preloader"></div>
  324.     <style>
  325.     /* Preloader */
  326.  
  327.     #preloader {
  328.         position: absolute;
  329.         top: 0;
  330.         left: 0;
  331.         right: 0;
  332.         bottom: 0;
  333.         background-color: #fff;
  334.         /* change if the mask should have another color then white */
  335.         z-index: 999999999999;
  336.         /* makes sure it stays on top */
  337.     }
  338.     </style>
  339.     <div class="flexslider">
  340.         <ul class="slides">
  341.             <li>
  342.                 <a href="http://sketzhbook.com">
  343.                     <img src="https://1.bp.blogspot.com/-lR151edFNfc/Xmj93KfWjjI/AAAAAAAATDc/PEGoMSgszZgUE-H5vcosqmJ2yJWOAsEKgCLcBGAsYHQ/s1600/Desain%2BVevtor%2B2.jpg" />
  344.                 </a>
  345.             </li>
  346.             <li>
  347.                 <a href="http://sketzhbook.com">
  348.                     <img src="https://1.bp.blogspot.com/-VmQIp114vsc/Xmj9wzjYLrI/AAAAAAAATDQ/tt4Dh2PsdSMuH0tsn8OxJ5KoirHKaOm7QCLcBGAsYHQ/s1600/Desain%2BUndangan.jpg" />
  349.                 </a>
  350.             </li>
  351.             <li>
  352.                 <a href="http://sketzhbook.com">
  353.                     <img src="https://1.bp.blogspot.com/-6TwCCNdz-TQ/Xmj9wXLY4NI/AAAAAAAATDI/307IBOGKLu4rUbqqKxVaQsIRB_2apgVxgCLcBGAsYHQ/s1600/2.jpg" />
  354.                 </a>
  355.             </li>
  356. <li>
  357.                 <a href="http://sketzhbook.com">
  358.                     <img src="https://1.bp.blogspot.com/-osUxtedJmnw/Xmj-hSJwweI/AAAAAAAATEc/cRFGXPqAlkUsHZP4gZsIJo05DTKkVt5KwCLcBGAsYHQ/s1600/Desain%2BWPAP%2B2.jpg" />
  359.                 </a>
  360.             </li>
  361.         </ul>
  362.     </div>
  363. </div>
  364. <!-- SLIDER JS -->
  365. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
  366. <script src="http://project.dimpost.com/flexslider-basic/js/jquery.flexslider-min.js"></script>
  367. <script type="text/javascript">
  368. $(window).load(function() {
  369.     $('.flexslider').flexslider({
  370.         animation: "slide",
  371.         controlNav: true,
  372.         directionNav: true,
  373.         easing: "swing",
  374.         slideshowSpeed: 3000,
  375.         animationSpeed: 600,
  376.     });
  377. });
  378. </script>
  379. <script type="text/javascript">
  380. //<![CDATA[
  381. $(window).load(function() {
  382.         $('#preloader').delay(350).fadeOut('slow');
  383.     })
  384.     //]]>
  385. </script>
Add Comment
Please, Sign In to add comment