Advertisement
kennyman123

Untitled

Jun 17th, 2016
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.60 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>HI/HELLO</title>
  5. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  6. <script type="text/javascript" src="https://cdn.rawgit.com/alvarotrigo/pagePiling.js/master/jquery.pagepiling.min.js"></script>
  7. <link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/alvarotrigo/pagePiling.js/master/jquery.pagepiling.css">
  8. <meta charset="utf-8">
  9. </head>
  10. <style>
  11. #arrow{
  12. width: 100%;
  13. height: 50px;
  14. text-align: center;
  15. cursor: pointer;
  16. position: fixed;
  17. bottom: 0;
  18. left: 0;
  19. border: 0;
  20. outline: 0;
  21. z-index: 100;
  22. color: #BBB;
  23. background: transparent;
  24. -moz-transition: all 0.2s cubic-bezier(0.7, 0.01, 0.3, 1);
  25. -o-transition: all 0.2s cubic-bezier(0.7, 0.01, 0.3, 1);
  26. -webkit-transition: all 0.2s cubic-bezier(0.7, 0.01, 0.3, 1);
  27. transition: all 0.2s cubic-bezier(0.7, 0.01, 0.3, 1);
  28. font: 36px Heiti, 'Lucida Grande', Arial;
  29. font-weight: bold;
  30. }
  31. #arrow span{
  32. display: inline-block;
  33. position: relative;
  34. top: -18px;
  35. -moz-transition: all 0.7s cubic-bezier(0.7, 0.01, 0.3, 1);
  36. -o-transition: all 0.7s cubic-bezier(0.7, 0.01, 0.3, 1);
  37. -webkit-transition: all 0.7s cubic-bezier(0.7, 0.01, 0.3, 1);
  38. transition: all 0.7s cubic-bezier(0.7, 0.01, 0.3, 1);
  39. }
  40. #arrow:hover{
  41. background: #EC008C;
  42. }
  43. #arrow:hover span{
  44. top: 0;
  45. color: #FFF;
  46. }
  47. </style>
  48. <style>
  49. #pp-nav li .active span, .pp-slidesNav .active span {
  50. background: #bbb;
  51. }
  52. #pp-nav span, .pp-slidesNav span {
  53. border-color: #bbb !important;
  54. }
  55. </style>
  56. <style>
  57. .section {
  58. background-attachment: fixed;
  59. background-size: auto 80%;
  60. background-position: 50% 0%;
  61. background-repeat: no-repeat;
  62. }
  63. #section1 {
  64. background-image: url('http://i.imgur.com/aVDvkXk.jpg?1');
  65. background-size: cover;
  66. }
  67. </style>
  68. <style>
  69. .intro {
  70. position: absolute;
  71.  
  72. text-align: left;
  73. width: 100%;
  74. left: 620px;
  75. bottom: 390px;
  76. color: #FFFFFF;
  77.  
  78. }
  79. .intro h1 {
  80. font-size: 5em;
  81. font-weight: bold;
  82. color: #000;
  83. position: relative;
  84. left: -1px;
  85. top: 27px;
  86.  
  87. }
  88. #section4 .intro {
  89. color: #000;
  90. }
  91. /* Content page
  92. * --------------------------------------- */
  93. .header {
  94. padding-top: 80px;
  95. text-align: center;
  96. }
  97. .header h1 {
  98. font-size: 5em;
  99. font-weight: bold;
  100. color: #fff;
  101. }
  102. .header p {
  103. color: #f2f2f2;
  104. font-size: 1.7em;
  105.  
  106. }
  107. .page {
  108. width: 80%;
  109. margin: 60px auto;
  110. background:white;
  111. padding: 60px;
  112. -webkit-box-sizing: border-box;
  113. /* Safari<=5 Android<=3 */
  114. -moz-box-sizing: border-box;
  115. /* <=28 */
  116. box-sizing: border-box;
  117. }
  118. .page p {
  119. font-style: 12px;
  120. margin: 20px 0 0 0;
  121. line-height: 1.35em;
  122. color: #333;
  123.  
  124. }
  125. </style>
  126. <body>
  127. <button id="arrow"> <span>↓</span>
  128.  
  129. </button>
  130. <div id="pagepiling">
  131. <div class="section" id="section1">
  132. <div class="intro">
  133. <h1><font color="FFFFFF">HI</font></h1>
  134.  
  135. <font size="4">
  136. I believe in pink. I believe that <br/>
  137. laughing is the best calorie
  138. burner. I believe in kissing,
  139. kissing a lot. I believe in being strong<br/>
  140. when everything seems
  141. to be going Wrong. I believe that
  142. happy girls are the prettiest girls.<br/>
  143. I believe that tomorrow is another day and I believe in miracles<br/>
  144.  
  145. </div>
  146. </div>
  147. <script>$('#pagepiling').pagepiling({
  148. verticalCentered: false,
  149. css3: false,
  150. sectionsColor: ['white', '#E8E8E8', '#f2f2f2', '#EC008C'],
  151. onLeave: function(index, nextIndex, direction) {
  152.  
  153. //fading out the txt of the leaving section
  154. $('.section').eq(index - 1).find('h1, p').fadeOut(700, 'easeInQuart');
  155.  
  156. //fading in the text of the destination (in case it was fadedOut)
  157. $('.section').eq(nextIndex - 1).find('h1, p').fadeIn(700, 'easeInQuart');
  158.  
  159. //reaching our last section? The one with our normal site?
  160. if (nextIndex == 4) {
  161. $('#arrow').hide();
  162.  
  163. //fading out navigation bullets
  164. $('#pp-nav').fadeOut();
  165.  
  166. $('#section4').find('.content').animate({
  167. top: '0%'
  168. }, 700, 'easeInQuart');
  169. }
  170.  
  171. //leaving our last section? The one with our normal site?
  172. if (index == 4) {
  173. $('#arrow').show();
  174.  
  175. //fadding in navigation bullets
  176. $('#pp-nav').fadeIn();
  177.  
  178. $('#section4 .content').animate({
  179. top: '100%'
  180. }, 700, 'easeInQuart');
  181. }
  182. },
  183. });
  184.  
  185. $('#arrow').click(function() {
  186. $.fn.pagepiling.moveSectionDown();
  187. });</script>
  188. </body>
  189. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement