Advertisement
yLii

Infinite Isotope 06 :D

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