demo.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta content="charset=utf-8">
  5. <title>FlexSlider Demo</title>
  6. <!-- FlexSlider pieces -->
  7. <link rel="stylesheet" href="flexslider.css" type="text/css" media="screen" />
  8. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
  9. <script src="jquery.flexslider-min.js"></script>
  10. <!-- Includes for this demo -->
  11. <link rel="stylesheet" href="demo-stuff/demo.css" type="text/css" media="screen" />
  12. <!-- Hook up the FlexSlider -->
  13. <script type="text/javascript">
  14. $(window).load(function() {
  15. $('.flexslider').flexslider();
  16. });
  17. </script>
  18. </head>
  19. <body>
  20. <div id="container">
  21. <h2>FlexSlider Demo - <a href="http://flex.madebymufffin.com">Visit the homepage for documentation details</a></h2>
  22. <!--=============================
  23. Markup for FADE animation
  24. =================================-->
  25. <div class="flexslider">
  26. <ul class="slides">
  27. <li>
  28. <img src="demo-stuff/inacup_samoa.jpg" />
  29. <p class="flex-caption">Captions and cupcakes. Winning combination.</p>
  30. </li>
  31. <li>
  32. <a href="http://flex.madebymufffin.com"><img src="demo-stuff/inacup_pumpkin.jpg" /></a>
  33. <p class="flex-caption">This image is wrapped in a link!</p>
  34. </li>
  35. <li>
  36. <img src="demo-stuff/inacup_donut.jpg" />
  37. </li>
  38. <li>
  39. <img src="demo-stuff/inacup_vanilla.jpg" />
  40. </li>
  41. </ul>
  42. </div>
  43. <!--============================
  44. Markup for SLIDE animation
  45. You need to add an extra container element for the overflow: hidden property on the slider
  46. Update your flexslider() function with the following properties:
  47. <script type="text/javascript">
  48. $(window).load(function() {
  49. $('.flexslider').flexslider({
  50. animation: "slide",
  51. controlsContainer: ".flexslider-container"
  52. });
  53. });
  54. </script>
  55. =================================
  56. <div class="flexslider-container">
  57. <div class="flexslider">
  58. <ul class="slides">
  59. <li>
  60. <img src="demo-stuff/inacup_samoa.jpg" />
  61. <p class="flex-caption">Captions and cupcakes. Winning combination.</p>
  62. </li>
  63. <li>
  64. <a href="#"><img src="demo-stuff/inacup_pumpkin.jpg" /></a>
  65. <p class="flex-caption">This image is wrapped in a link!</p>
  66. </li>
  67. <li>
  68. <img src="demo-stuff/inacup_donut.jpg" />
  69. </li>
  70. <li>
  71. <img src="demo-stuff/inacup_vanilla.jpg" />
  72. </li>
  73. </ul>
  74. </div>
  75. </div>
  76. ==================================-->
  77. </div>
  78. </body>
  79. </html>