right-to-left.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>right to left</title>
  6. <link rel="stylesheet" href="sandbox.css" />
  7. <style>
  8. #stamped .stamp1 {
  9. width: 30%;
  10. height: 100px;
  11. left: 30%;
  12. top: 20px;
  13. margin: 10px;
  14. }
  15. #stamped .stamp2 {
  16. width: 200px;
  17. height: 50px;
  18. left: 20px;
  19. top: 50px;
  20. }
  21. </style>
  22. </head>
  23. <body>
  24. <h1>right to left</h1>
  25. <div id="basic" class="container">
  26. <div class="item"></div>
  27. <div class="item h4"></div>
  28. <div class="item w2 h2"></div>
  29. <div class="item w2"></div>
  30. <div class="item h3"></div>
  31. <div class="item w3"></div>
  32. <div class="item"></div>
  33. <div class="item h4"></div>
  34. <div class="item"></div>
  35. <div class="item w2 h4"></div>
  36. <div class="item w2"></div>
  37. <div class="item h5"></div>
  38. <div class="item w3"></div>
  39. <div class="item"></div>
  40. <div class="item h4"></div>
  41. <div class="item"></div>
  42. <div class="item w2 h5"></div>
  43. <div class="item w2"></div>
  44. <div class="item h3"></div>
  45. <div class="item w3"></div>
  46. <div class="item"></div>
  47. </div>
  48. <div id="stamped" class="container">
  49. <div class="stamp stamp1"></div>
  50. <div class="stamp stamp2"></div>
  51. <div class="item"></div>
  52. <div class="item h4"></div>
  53. <div class="item w2 h2"></div>
  54. <div class="item w2"></div>
  55. <div class="item h3"></div>
  56. <div class="item w3"></div>
  57. <div class="item"></div>
  58. <div class="item h4"></div>
  59. <div class="item"></div>
  60. <div class="item w2 h4"></div>
  61. <div class="item w2"></div>
  62. <div class="item h5"></div>
  63. <div class="item w3"></div>
  64. <div class="item"></div>
  65. <div class="item h4"></div>
  66. <div class="item"></div>
  67. <div class="item w2 h5"></div>
  68. <div class="item w2"></div>
  69. <div class="item h3"></div>
  70. <div class="item w3"></div>
  71. <div class="item"></div>
  72. </div>
  73. <script src="../bower_components/eventEmitter/EventEmitter.js"></script>
  74. <script src="../bower_components/eventie/eventie.js"></script>
  75. <script src="../bower_components/doc-ready/doc-ready.js"></script>
  76. <script src="../bower_components/get-style-property/get-style-property.js"></script>
  77. <script src="../bower_components/get-size/get-size.js"></script>
  78. <script src="../bower_components/jquery-bridget/jquery.bridget.js"></script>
  79. <script src="../bower_components/matches-selector/matches-selector.js"></script>
  80. <script src="../bower_components/fizzy-ui-utils/utils.js"></script>
  81. <script src="../bower_components/outlayer/item.js"></script>
  82. <script src="../bower_components/outlayer/outlayer.js"></script>
  83. <script src="../masonry.js"></script>
  84. <script>
  85. docReady( function() {
  86. ( function() {
  87. var container = document.querySelector('#basic');
  88. var msnry = new Masonry( container, {
  89. isOriginLeft: false,
  90. columnWidth: 60
  91. });
  92. })();
  93. ( function() {
  94. var container = document.querySelector('#stamped');
  95. var msnry = new Masonry( container, {
  96. itemSelector: '.item',
  97. isOriginLeft: false,
  98. columnWidth: 60,
  99. gutter: 10,
  100. stamp: '.stamp'
  101. });
  102. })();
  103. });
  104. </script>
  105. </body>
  106. </html>