Advertisement
yLii

Infinite Isotope 01 (Base)

Jan 2nd, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.69 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Adamantine</title>
  5.  
  6.  
  7. <script src="http://static.tumblr.com/iuvoef7/bXomx943d/jquery-1.7.1.min.js"></script>
  8.  
  9. <!--don't understand why this script doesn't work -->
  10. <script src="http://static.tumblr.com/iuvoef7/hshmx93xt/jquery.isotope.min.js"></script>
  11.  
  12. <!-- for some reason this one works -->
  13. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.isotope/2.2.2/isotope.pkgd.min.js"></script>
  14.  
  15.  
  16.  
  17. <script src="http://static.tumblr.com/iuvoef7/tIEmx9449/jquery.infinitescroll.min.js"></script>
  18.  
  19.  
  20.  
  21. <script>
  22. var isotope = $(function(){
  23. var $container = $('#content');
  24. $container.imagesLoaded(function(){
  25. $container.isotope({
  26. itemSelector : '.box',
  27. layoutMode : 'vertical',
  28. });
  29. });
  30.  
  31. $container.infinitescroll({
  32. navSelector : '#page_nav',
  33. nextSelector : '#page_nav a',
  34. itemSelector : '.box',
  35. loading: {
  36. finishedMsg: 'No more pages to load.',
  37. img: 'http://i.imgur.com/qkKy8.gif'
  38. }
  39. },
  40. // call Isotope as a callback
  41. function ( newElements ) {
  42. var $newElems = jQuery( newElements ).hide(); // hide to begin with
  43. // ensure that images load before adding to masonry layout
  44. $newElems.imagesLoaded(function(){
  45. $newElems.fadeIn(); // fade in when ready
  46. $container.isotope( 'insert', $newElems );
  47. });
  48. }
  49. );
  50. });
  51.  
  52.  
  53.  
  54. $(document).ready(isotope);
  55.  
  56. </script>
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. <meta name="image:Background" content="" />
  64. <meta name="image:Lollipop Background" content="" />
  65. <meta name="image:Quote Background" content="" />
  66. <meta name="image:HeaderBackground" content="" />
  67. <meta name="color:Background" content="#369fa0" />
  68. <meta name="color:Links" content="#619251" />
  69. <meta name="color:Text highlight" content="#d83e5c" />
  70. <meta name="color:Lollipop" content="#000000" />
  71. <meta name="color:Lollipop Hover" content="#b7512e" />
  72. <meta name="color:Hover" content="#b7512e" />
  73.  
  74. <meta name="text:Post Width" content="240px" />
  75. <meta name="text:Post margin" content="10px" />
  76. <meta name="text:Columns" content="4" />
  77.  
  78.  
  79.  
  80. <meta name="text:Font size" content='0.8em'/>
  81. <meta name="text:Google Analytics ID" content=''/>
  82. <meta name="text:Twitter Username" content=''/>
  83.  
  84. <meta name="if:Fade" content="1" />
  85. <meta name="if:Infinite Scroll" content="1" />
  86.  
  87.  
  88. <meta name="viewport" content="width=device-width, maximum-scale=1, minimum-scale=1" />
  89.  
  90.  
  91.  
  92.  
  93.  
  94. <link rel="shortcut icon" href="{Favicon}">
  95. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  96. <link href="http://static.tumblr.com/wgijwsy/k1Hm9ei8b/normalize.css" rel="stylesheet" type="text/css" />
  97.  
  98.  
  99.  
  100.  
  101.  
  102. <style type="text/css">
  103.  
  104.  
  105. @font-face {font-family:"Mayo";src:url('http://static.tumblr.com/m9qxvhq/dD6mhcpd0/mayonaise-condensed.otf');}
  106. @font-face {font-family:"Blake";src:url('http://static.tumblr.com/m9qxvhq/bnRmhedq1/blake2.ttf');}
  107. @font-face {font-family:"Sugah";src:url('http://static.tumblr.com/m9qxvhq/Dghmhi6ct/frenchsugar.ttf');}
  108. @font-face {font-family:"Sachiko";src:url('http://static.tumblr.com/m9qxvhq/UTEmhi6ks/sachiko.ttf');}
  109. @font-face {font-family:"Buffet";src:url('http://static.tumblr.com/m9qxvhq/0V2mhl3je/buffet_script.ttf');}
  110. @font-face {font-family:"Accent";src:url('http://static.tumblr.com/m9qxvhq/mc9mhlhm3/accent.ttf');}
  111. @font-face {font-family:"Barkentina";src:url('http://static.tumblr.com/m9qxvhq/CH5mhn23p/barkentina_1.otf');}
  112.  
  113.  
  114. ::-webkit-scrollbar {width: 8px; height: 4px; background: #000; opacity:0.5;}
  115. ::-webkit-scrollbar-thumb { background-color: #aaaaaa; -webkit-border-radius: 2ex; opacity:0.5; }
  116. ::-moz-scrollbar {width: 8px; height: 4px; background: #ffffff; }
  117. ::-moz-scrollbar-thumb { background-color: #aaaaaa; -moz-border-radius: 2ex; opacity:0.4; }
  118. ::-o-scrollbar {width: 8px; height: 4px; background: #ffffff; }
  119. ::-o-scrollbar-thumb { background-color: #aaaaaa; -o-border-radius: 2ex; opacity:0.4; }
  120.  
  121.  
  122.  
  123.  
  124. ::selection {background: #d83e5c;color: #fff;}
  125. ::-moz-selection {background: #d83e5c;color: #fff;}
  126.  
  127.  
  128.  
  129.  
  130. html {
  131.  
  132. }
  133.  
  134.  
  135.  
  136. body {
  137. background: #ffffff;
  138.  
  139. }
  140.  
  141. #content {
  142. width:100%;
  143.  
  144. }
  145.  
  146.  
  147.  
  148.  
  149. .title {
  150. font-family:"Buffet";
  151. font-size: 25px;
  152. margin-bottom: 10px;
  153. }
  154.  
  155. .entry {
  156. float: left;
  157. width:50%;
  158. }
  159.  
  160.  
  161. #nav {
  162. float: left;
  163. margin-top: 20px;
  164. position: fixed;
  165. z-index:1000;
  166. right:0px;
  167. margin-right:auto;
  168. position:fixed;
  169. }
  170.  
  171. #nav a {
  172. text-decoration: none;
  173. font-size: 15px;
  174. line-height: 25px;
  175. color: #595959;
  176. }
  177.  
  178. #nav a:hover {
  179. color: #393939;
  180. }
  181.  
  182. #nav a:active {
  183. color: #151515;
  184. }
  185.  
  186.  
  187. .tumblrAutoPager_page_info, .tumblrAutoPager_page_separator {display:none;}
  188. #infscr-loading {display:none;}
  189. .navigation {display:none!important;}
  190.  
  191.  
  192.  
  193. .isotope-item {
  194. z-index: 2;
  195. }
  196.  
  197. .isotope-hidden.isotope-item {
  198. pointer-events: none;
  199. z-index: 1;
  200. }
  201.  
  202. .isotope,
  203. .isotope .isotope-item {
  204. /* change duration value to whatever you like */
  205. -webkit-transition-duration: 0.8s;
  206. -moz-transition-duration: 0.8s;
  207. transition-duration: 0.8s;
  208. }
  209.  
  210. .isotope {
  211. -webkit-transition-property: height, width;
  212. -moz-transition-property: height, width;
  213. transition-property: height, width;
  214. }
  215.  
  216. .isotope .isotope-item {
  217. -webkit-transition-property: -webkit-transform, opacity;
  218. -moz-transition-property: -moz-transform, opacity;
  219. transition-property: transform, opacity;
  220. }
  221.  
  222.  
  223.  
  224. .box {
  225. float: left;
  226. }
  227.  
  228. .photo {
  229. width:500px;
  230. }
  231.  
  232.  
  233.  
  234. </style>
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245. </head>
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258. <body>
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266. <div id="content">
  267. {block:Posts}
  268.  
  269. {block:Photo}
  270.  
  271. <a href="{Permalink}">
  272. <img src="{PhotoURL-HighRes}" alt="{PhotoAlt}" class="box photo" />
  273. </a>
  274.  
  275.  
  276. {/block:Photo}
  277.  
  278.  
  279.  
  280.  
  281. {/block:Posts}
  282. </div>
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291. <div class="navigation">
  292. {block:Pagination}
  293. {block:NextPage}<p id="page_nav"><a style="float:right" href="{NextPage}" id="next">Older ?</a>{/block:NextPage}
  294. {block:PreviousPage}<a style="float:left" href="{PreviousPage}">? Newer</a></p>{/block:PreviousPage}
  295. {/block:Pagination}
  296. </div>
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308. </body>
  309. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement