demo.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset=utf-8 />
  5. <title>Flux Slider Demo &#0187; Hardware accelerated image transitions using CSS3</title>
  6. <!--[if lte IE 8]>
  7. <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  8. <![endif]-->
  9. <link rel="stylesheet" href="css/demo.css" type="text/css" media="screen" title="no title" charset="utf-8">
  10. <!-- Use Zepto for best performance on WebKit based browser -->
  11. <!-- <script src="js/zepto/zepto.js" type="text/javascript" charset="utf-8"></script> -->
  12. <!-- Use jQuery for best compatibility with other CSS3 enabled browsers -->
  13. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript" charset="utf-8"></script>
  14. <script src="js/flux.min.js" type="text/javascript" charset="utf-8"></script>
  15. <script type="text/javascript" charset="utf-8">
  16. $(function(){
  17. if(!flux.browser.supportsTransitions)
  18. alert("Flux Slider requires a browser that supports CSS3 transitions");
  19. window.f = new flux.slider('#slider', {
  20. pagination: true
  21. });
  22. });
  23. </script>
  24. </head>
  25. <body>
  26. <section class="container">
  27. <h1><span class="flux">Flux</span> <span class="slider">Slider</span></h1>
  28. <h2>Hardware accelerated image transitions using CSS3.</h2>
  29. <div id="slider">
  30. <img src="img/avatar.jpg" alt="" />
  31. <img src="img/ironman.jpg" alt="" />
  32. <img src="img/tron.jpg" alt="" />
  33. <img src="img/greenhornet.jpg" alt="" />
  34. </div>
  35. <footer>
  36. <p>Flux Slider &copy; Copyright 2011 Joe Lambert. All Rights Reserved. Follow me on Twitter <a href="http://www.twitter.com/joelambert">@joelambert</a></p>
  37. <img src="img/html5.png" alt="HTML5" width="35px" />
  38. </footer>
  39. </section>
  40. </body>
  41. </html>