right-to-left.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>right to left</title>
  6. <link rel="stylesheet" href="../css/flickity.css" />
  7. <link rel="stylesheet" href="sandbox.css" />
  8. <style>
  9. .variable-width .cell { margin: 0 0 0 4%; }
  10. </style>
  11. </head>
  12. <body>
  13. <h1>right to left</h1>
  14. <div id="gallery1" class="container variable-width">
  15. <div class="cell n1"><b>1</b></div>
  16. <div class="cell n2 w2"><b>2</b></div>
  17. <div class="cell n3 w3"><b>3</b></div>
  18. <div class="cell n4"><b>4</b></div>
  19. <div class="cell n5 w2"><b>5</b></div>
  20. <div class="cell n6"><b>6</b></div>
  21. </div>
  22. <div id="gallery2" class="container variable-width">
  23. <div class="cell n1"><b>1</b></div>
  24. <div class="cell n2 w2"><b>2</b></div>
  25. <div class="cell n3 w3"><b>3</b></div>
  26. <div class="cell n4"><b>4</b></div>
  27. <div class="cell n5 w2"><b>5</b></div>
  28. <div class="cell n6"><b>6</b></div>
  29. </div>
  30. <script src="../bower_components/get-size/get-size.js"></script>
  31. <script src="../bower_components/desandro-matches-selector/matches-selector.js"></script>
  32. <script src="../bower_components/ev-emitter/ev-emitter.js"></script>
  33. <script src="../bower_components/unipointer/unipointer.js"></script>
  34. <script src="../bower_components/unidragger/unidragger.js"></script>
  35. <script src="../bower_components/fizzy-ui-utils/utils.js"></script>
  36. <script src="../js/cell.js"></script>
  37. <script src="../js/slide.js"></script>
  38. <script src="../js/animate.js"></script>
  39. <script src="../js/flickity.js"></script>
  40. <script src="../js/drag.js"></script>
  41. <script src="../js/prev-next-button.js"></script>
  42. <script src="../js/page-dots.js"></script>
  43. <script src="../js/player.js"></script>
  44. <script src="../js/add-remove-cell.js"></script>
  45. <script>
  46. window.onload = function() {
  47. var flky = window.flky = new Flickity( '#gallery1', {
  48. wrapAround: true,
  49. rightToLeft: true
  50. });
  51. var flky2 = new Flickity( '#gallery2', {
  52. rightToLeft: true
  53. });
  54. };
  55. </script>
  56. </body>
  57. </html>