Advertisement
yLii

Infinite Isotope 04

Jan 2nd, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.95 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. <script src="https://raw.githubusercontent.com/metafizzy/isotope-masonry-horizontal/master/masonry-horizontal.js"></script>
  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 : '{select:Layout Type}',
  28. masonry: {
  29. gutter: {select:Gutter Width}
  30. }
  31. });
  32. });
  33.  
  34. $container.infinitescroll({
  35. navSelector : '#page_nav',
  36. nextSelector : '#page_nav a',
  37. itemSelector : '.box',
  38. loading: {
  39. finishedMsg: 'You have reached the end of the internet.',
  40. img: 'http://i.imgur.com/qkKy8.gif'
  41. }
  42. },
  43. // call Isotope as a callback
  44. function ( newElements ) {
  45. var $newElems = jQuery( newElements ).hide(); // hide to begin with
  46. // ensure that images load before adding to masonry layout
  47. $newElems.imagesLoaded(function(){
  48. $newElems.fadeIn(); // fade in when ready
  49. $container.isotope( 'insert', $newElems );
  50. });
  51. }
  52. );
  53. });
  54.  
  55.  
  56.  
  57. $(document).ready(isotope);
  58.  
  59. </script>
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66. <meta name="image:Background" content="" />
  67. <meta name="image:Lollipop Background" content="" />
  68. <meta name="image:Quote Background" content="" />
  69. <meta name="image:HeaderBackground" content="" />
  70.  
  71. <meta name="color:Background" content="#ffffff" />
  72. <meta name="color:Links" content="#619251" />
  73. <meta name="color:Text highlight" content="#d83e5c" />
  74. <meta name="color:Lollipop" content="#000000" />
  75. <meta name="color:Lollipop Hover" content="#b7512e" />
  76. <meta name="color:Hover" content="#b7512e" />
  77.  
  78.  
  79. <meta name="text:Post margin" content="10px" />
  80. <meta name="text:Columns" content="4" />
  81.  
  82.  
  83.  
  84. <meta name="text:Font size" content='0.8em'/>
  85. <meta name="text:Google Analytics ID" content=''/>
  86. <meta name="text:Twitter Username" content=''/>
  87.  
  88. <meta name="if:Fade" content="1" />
  89. <meta name="if:Infinite Scroll" content="1" />
  90. <meta name="if:Head Space" content="1" />
  91.  
  92. <meta name="select:Content Width" content="30%" />
  93. <meta name="select:Content Width" content="40%" />
  94. <meta name="select:Content Width" content="50%" />
  95. <meta name="select:Content Width" content="60%" />
  96. <meta name="select:Content Width" content="70%" />
  97. <meta name="select:Content Width" content="80%" />
  98. <meta name="select:Content Width" content="90%" />
  99. <meta name="select:Content Width" content="100%" />
  100.  
  101.  
  102. <meta name="select:Fade Opacity" content="0.1" />
  103. <meta name="select:Fade Opacity" content="0.2" />
  104. <meta name="select:Fade Opacity" content="0.3" />
  105. <meta name="select:Fade Opacity" content="0.4" />
  106. <meta name="select:Fade Opacity" content="0.5" />
  107. <meta name="select:Fade Opacity" content="0.6" />
  108. <meta name="select:Fade Opacity" content="0.7" />
  109. <meta name="select:Fade Opacity" content="0.8" />
  110. <meta name="select:Fade Opacity" content="0.9" />
  111. <meta name="select:Fade Opacity" content="1.0" />
  112.  
  113. <meta name="select:Float" content="margin:auto" title="Align Center" />
  114. <meta name="select:Float" content="float:left" title="Align Left" />
  115. <meta name="select:Float" content="float:right" title="Align Right" />
  116.  
  117. <meta name="select:Layout Type" content="cellsByColumn" title="Cells by Column" />
  118. <meta name="select:Layout Type" content="cellsByRow" title="Cells by Row" />
  119. <meta name="select:Layout Type" content="fitColumns" title="Fit Columns" />
  120. <meta name="select:Layout Type" content="fitRows" title="Fit Rows" />
  121. <meta name="select:Layout Type" content="horiz" title="Horizontal" />
  122. <meta name="select:Layout Type" content="masonry" title="Masonry" />
  123. <meta name="select:Layout Type" content="masonryHorizontal,
  124. masonryHorizontal: {
  125. rowHeight: 400
  126. }" title="Masonry Horizontal" />
  127. <meta name="select:Layout Type" content="packery" title="Packery" />
  128. <meta name="select:Layout Type" content="vertical" title="Vertical" />
  129.  
  130. <meta name="select:Gutter Width" content="0" />
  131. <meta name="select:Gutter Width" content="5" />
  132. <meta name="select:Gutter Width" content="10" />
  133. <meta name="select:Gutter Width" content="15" />
  134.  
  135.  
  136. <!--Post Width in relation to Content Width -->
  137. <meta name="select:Post Width" content="30%" />
  138. <meta name="select:Post Width" content="40%" />
  139. <meta name="select:Post Width" content="50%" />
  140. <meta name="select:Post Width" content="60%" />
  141. <meta name="select:Post Width" content="70%" />
  142. <meta name="select:Post Width" content="75%" />
  143. <meta name="select:Post Width" content="80%" />
  144. <meta name="select:Post Width" content="90%" />
  145. <meta name="select:Post Width" content="100%" />
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155. <link rel="shortcut icon" href="{Favicon}">
  156. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  157. <link href="http://static.tumblr.com/wgijwsy/k1Hm9ei8b/normalize.css" rel="stylesheet" type="text/css" />
  158.  
  159.  
  160.  
  161.  
  162.  
  163. <style type="text/css">
  164.  
  165.  
  166. @font-face {font-family:"Mayo";src:url('http://static.tumblr.com/m9qxvhq/dD6mhcpd0/mayonaise-condensed.otf');}
  167. @font-face {font-family:"Blake";src:url('http://static.tumblr.com/m9qxvhq/bnRmhedq1/blake2.ttf');}
  168. @font-face {font-family:"Sugah";src:url('http://static.tumblr.com/m9qxvhq/Dghmhi6ct/frenchsugar.ttf');}
  169. @font-face {font-family:"Sachiko";src:url('http://static.tumblr.com/m9qxvhq/UTEmhi6ks/sachiko.ttf');}
  170. @font-face {font-family:"Buffet";src:url('http://static.tumblr.com/m9qxvhq/0V2mhl3je/buffet_script.ttf');}
  171. @font-face {font-family:"Accent";src:url('http://static.tumblr.com/m9qxvhq/mc9mhlhm3/accent.ttf');}
  172. @font-face {font-family:"Barkentina";src:url('http://static.tumblr.com/m9qxvhq/CH5mhn23p/barkentina_1.otf');}
  173.  
  174.  
  175. ::-webkit-scrollbar {width: 8px; height: 4px; background: #000; opacity:0.5;}
  176. ::-webkit-scrollbar-thumb { background-color: #aaaaaa; -webkit-border-radius: 2ex; opacity:0.5; }
  177. ::-moz-scrollbar {width: 8px; height: 4px; background: #ffffff; }
  178. ::-moz-scrollbar-thumb { background-color: #aaaaaa; -moz-border-radius: 2ex; opacity:0.4; }
  179. ::-o-scrollbar {width: 8px; height: 4px; background: #ffffff; }
  180. ::-o-scrollbar-thumb { background-color: #aaaaaa; -o-border-radius: 2ex; opacity:0.4; }
  181.  
  182.  
  183.  
  184.  
  185. ::selection {background: #d83e5c;color: #fff;}
  186. ::-moz-selection {background: #d83e5c;color: #fff;}
  187.  
  188.  
  189.  
  190.  
  191. html {
  192.  
  193. }
  194.  
  195.  
  196.  
  197. body {
  198. background: {color:Background};
  199.  
  200.  
  201. }
  202.  
  203.  
  204. {block:IfHeadSpace}
  205. .headspace{
  206. height:300px;
  207. }
  208. {/block:IfHeadSpace}
  209.  
  210.  
  211.  
  212.  
  213. #content {
  214. width:{select:Content Width};
  215. {select:Float};
  216. }
  217.  
  218.  
  219.  
  220.  
  221. .title {
  222. font-family:"Buffet";
  223. font-size: 25px;
  224. margin-bottom: 10px;
  225. }
  226.  
  227. .entry {
  228. float: left;
  229. width:50%;
  230. }
  231.  
  232.  
  233. #nav {
  234. float: left;
  235. margin-top: 20px;
  236. position: fixed;
  237. z-index:1000;
  238. right:0px;
  239. margin-right:auto;
  240. position:fixed;
  241. }
  242.  
  243. #nav a {
  244. text-decoration: none;
  245. font-size: 15px;
  246. line-height: 25px;
  247. color: #595959;
  248. }
  249.  
  250. #nav a:hover {
  251. color: #393939;
  252. }
  253.  
  254. #nav a:active {
  255. color: #151515;
  256. }
  257.  
  258.  
  259. .tumblrAutoPager_page_info, .tumblrAutoPager_page_separator {display:none;}
  260. #infscr-loading {display:none;}
  261. .navigation {display:none!important;}
  262.  
  263.  
  264.  
  265. .isotope-item {
  266. z-index: 2;
  267. }
  268.  
  269. .isotope-hidden.isotope-item {
  270. pointer-events: none;
  271. z-index: 1;
  272. }
  273.  
  274. .isotope,
  275. .isotope .isotope-item {
  276. /* change duration value to whatever you like */
  277. -webkit-transition-duration: 0.8s;
  278. -moz-transition-duration: 0.8s;
  279. transition-duration: 0.8s;
  280. }
  281.  
  282. .isotope {
  283. -webkit-transition-property: height, width;
  284. -moz-transition-property: height, width;
  285. transition-property: height, width;
  286. }
  287.  
  288. .isotope .isotope-item {
  289. -webkit-transition-property: -webkit-transform, opacity;
  290. -moz-transition-property: -moz-transform, opacity;
  291. transition-property: transform, opacity;
  292. }
  293.  
  294.  
  295.  
  296. .box {
  297. float: left;
  298. width:{select:Post Width};
  299. margin-bottom:{select:Gutter Width}px;
  300. {block:IfFade}
  301. opacity:{select:Fade Opacity};
  302. -webkit-transition-duration: 0.8s;
  303. -moz-transition-duration: 0.8s;
  304. transition-duration: 0.8s;
  305. {/block:IfFade}
  306.  
  307. }
  308.  
  309.  
  310. {block:IfFade}
  311. .box:hover {
  312. opacity:1.0;
  313. -webkit-transition-duration: 0.8s;
  314. -moz-transition-duration: 0.8s;
  315. transition-duration: 0.8s;
  316. }
  317. {/block:IfFade}
  318.  
  319. .photo {
  320.  
  321. }
  322.  
  323.  
  324.  
  325. </style>
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336. </head>
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349. <body>
  350.  
  351. {block:IfHeadSpace}
  352. <div class="headspace"></div>
  353. {/block:IfHeadSpace}
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360. <div id="content">
  361. {block:Posts}
  362.  
  363. {block:Photo}
  364.  
  365. <a href="{Permalink}">
  366. <img src="{PhotoURL-HighRes}" alt="{PhotoAlt}" class="box photo" />
  367. </a>
  368.  
  369.  
  370. {/block:Photo}
  371.  
  372.  
  373.  
  374.  
  375. {/block:Posts}
  376. </div>
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385. <div class="navigation">
  386. {block:Pagination}
  387. {block:NextPage}<p id="page_nav"><a style="float:right" href="{NextPage}" id="next">Older ?</a>{/block:NextPage}
  388. {block:PreviousPage}<a style="float:left" href="{PreviousPage}">? Newer</a></p>{/block:PreviousPage}
  389. {/block:Pagination}
  390. </div>
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402. </body>
  403. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement