Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.87 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <style>
  5.  
  6. body, html {
  7. height: 100%;
  8. margin: 0;
  9. font: 400 15px/1.8 "Lato", sans-serif;
  10. color: #777;
  11. }
  12.  
  13. .parallax1, .parallax2, .parallax3 {
  14. position: relative;
  15. opacity: 0.65;
  16. /* Create the parallax scrolling effect */
  17. background-attachment: fixed;
  18. background-position: center;
  19. background-repeat: no-repeat;
  20. background-size: cover;
  21. }
  22.  
  23. .parallax1 {
  24. /* The image used */
  25. background-image: url("images/bird.jpg");
  26.  
  27. /* Set a specific height */
  28. min-height: 100%;
  29.  
  30.  
  31. }
  32.  
  33. .parallax2 {
  34. /* The image used */
  35. background-image: url("images/sky.jpg");
  36.  
  37. /* Set a specific height */
  38. min-height: 500px;
  39.  
  40. }
  41.  
  42. .parallax3 {
  43. /* The image used */
  44. background-image: url("images/snail.jpg");
  45.  
  46. /* Set a specific height */
  47. min-height: 500px;
  48.  
  49. }
  50.  
  51. .caption {
  52. position: absolute;
  53. left: 0;
  54. top: 50%;
  55. width: 100%;
  56. text-align: center;
  57. color: #000;
  58. }
  59.  
  60. .caption span.border {
  61. background-color: #111;
  62. color: #fff;
  63. padding: 18px;
  64. font-size: 25px;
  65. letter-spacing: 10px;
  66. }
  67.  
  68. h3 {
  69. letter-spacing: 5px;
  70. text-transform: uppercase;
  71. font: 20px "Lato", sans-serif;
  72. color: #111;
  73. }
  74.  
  75. /* Turn off parallax scrolling for tablets and phones */
  76. @media only screen and (max-device-width: 1024px) {
  77. .parallax1, .parallax2, .parallax3 {
  78. background-attachment: scroll;
  79. }
  80. }
  81.  
  82. </style>
  83. </head>
  84. <body>
  85.  
  86. <div class="parallax1">
  87. <div class="caption">
  88. <span class="border">ZombieBunnies</span>
  89. </div>
  90. </div>
  91.  
  92. <div style="color: #777;background-color:white;text-align:center;padding:50px 80px;text-align: justify;">
  93. <h3 style="text-align:center;">Slackened Sail</h3>
  94. <p>This is how we sound, we are equipped to identify and speak all languages known... hello, how are you? I am fine.</p>
  95. </div>
  96.  
  97. <div class="parallax2">
  98. <div class="caption">
  99. <span class="border" style="background-color:transparent;font-size:25px;color: #f7f7f7;">Oceans</span>
  100. </div>
  101. </div>
  102.  
  103. <div style="position:relative;">
  104. <div style="color:#ddd;background-color:#282E34;text-align:center;padding:50px 80px;text-align: justify;">
  105. <p>All along the ditch the signs of life in sinking puddles...</p>
  106. </div>
  107. </div>
  108.  
  109. <div class="parallax3">
  110. <div class="caption">
  111. <span class="border" style="background-color:transparent;font-size:25px;color: #f7f7f7;">Dandelions</span>
  112. </div>
  113. </div>
  114.  
  115. <div style="position:relative;">
  116. <div style="color:#ddd;background-color:#282E34;text-align:center;padding:50px 80px;text-align: justify;">
  117. <p>And when the mist clears we will see all of our names on the marquee, across the ocean the same day and then washed ashore a block away...</p>
  118. </div>
  119. </div>
  120.  
  121. <div class="parallax1">
  122. <div class="caption">
  123. <span class="border">Sh@Zombiebunnies.ca</span>
  124. </div>
  125. </div>
  126. </body>
  127. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement