Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.60 KB | None | 0 0
  1. CSS
  2.  
  3. body, html {
  4. height: 100%;
  5. margin: 0;
  6. font-size: 16px;
  7. font-family: "Lato", sans-serif;
  8. font-weight: 400;
  9. line-height: 1.8em;
  10.  
  11. }
  12.  
  13. .overlay {
  14. background-color: #000;
  15. opacity: 0.5;
  16. position: absolute;
  17. background-position: 50% 50%;
  18. background-size: cover;
  19. background-attachment: fixed;
  20. background-repeat: no-repeat;
  21. width: 100%;
  22. min-height: 100%;
  23. z-index: 1;
  24. }
  25.  
  26.  
  27. .linkdark {
  28. display: inline-block;
  29. padding: 0.8em 0.3em;
  30. color: #fa9646;border: 1px solid #000;
  31. color: #000;
  32. text-transform: uppercase;
  33. font-size: 14px;
  34. width: 200px;
  35. text-align: center;
  36. transition: 0.5s;
  37. }
  38. .linkdark:hover {
  39. background: #000;
  40. color: #fff; }
  41.  
  42. .ptextdark p
  43.  
  44. { letter-spacing: 0px; color: #000; }
  45.  
  46. .ptextdark {
  47. position: absolute;
  48. top: 30%;
  49. width: 100%;
  50. text-align: center;
  51. color: #000;
  52. font-size: 50px;
  53. letter-spacing: 5px;
  54. text-transform: uppercase;
  55. }
  56.  
  57. .biggerbannertextdark{
  58. font-size: 55px;
  59. margin-bottom: 1em;
  60. font-weight: 100;
  61. line-height: 1.1;
  62. }
  63.  
  64. .ptextdark .border {
  65. background-color: #fff;
  66. color: #000;
  67. padding: 20px;
  68. }
  69.  
  70. a { text-decoration: none; }
  71.  
  72. .link {
  73. display: inline-block;
  74. padding: 0.8em 0.3em;
  75. color: #fa9646;border: 1px solid #fff;
  76. color: #fff;
  77. text-transform: uppercase;
  78. font-size: 14px;
  79. width: 200px;
  80. text-align: center;
  81. transition: 0.5s;
  82. }
  83.  
  84. a:hover { transition: 0.5s; }
  85.  
  86. .link:hover {
  87. background: #fff;
  88. color: #000; }
  89.  
  90. .cover-image, .cover-image2, .cover-image3, .cover-image4, .cover-image5{
  91. position:relative;
  92. background-position: center;
  93. background-size: cover;
  94. background-repeat: no-repeat;
  95. background-attachment: fixed;
  96. top: 0px;
  97. }
  98.  
  99. .ptext {
  100. position: absolute;
  101. top: 35%;
  102. width: 100%;
  103. text-align: center;
  104. color: #fff;
  105. font-size: 50px;
  106. letter-spacing: 5px;
  107. text-transform: uppercase;
  108. }
  109.  
  110. .ptextdark a {
  111. letter-spacing: 0px;
  112. }
  113.  
  114. .ptext a {
  115. letter-spacing: 0px;
  116. }
  117.  
  118. .biggerbannertext{
  119. font-size: 55px;
  120. margin-bottom: 1em;
  121. font-weight: 100;
  122. line-height: 1.1;
  123. }
  124.  
  125. .ptext .border {
  126. background-color: #111;
  127. color: #fff;
  128. padding: 20px;
  129. }
  130.  
  131. .cover-image {
  132. width: 100%;
  133. height: 100%;
  134. position: relative;
  135. background:url(http://ilovedturkeytwizzlers.uk/images/slideshow/homepage/world_map.jpg) fixed 50%/cover; }
  136.  
  137. .cover-image5 {
  138. width: 100%;
  139. height: 200vh; /* gives the effect a bit of room to breathe */
  140. position: relative;
  141. background: url(https://i.imgur.com/vftXqz7.jpg) fixed 50%/cover; /* This is the bottom image, blurred and grayscaled. Could also use filters to do this + another pseudoel, but is less performant. */
  142. }
  143.  
  144. .cover-image2 {
  145. width: 100%;
  146. min-height: 100%; /* gives the effect a bit of room to breathe */
  147. position: relative;
  148. background: url(http://www.led-flex.co.uk/media/wysiwyg/parallex/led2.jpg) fixed 50%/cover; /* This is the bottom image, blurred and grayscaled. Could also use filters to do this + another pseudoel, but is less performant. */
  149. }
  150.  
  151. .cover-image3 {
  152. width: 100%;
  153. min-height: 100%; /* gives the effect a bit of room to breathe */
  154. position: relative;
  155. background: url(http://www.led-flex.co.uk/media/wysiwyg/parallex/led5.jpg) fixed 50%/cover; /* This is the bottom image, blurred and grayscaled. Could also use filters to do this + another pseudoel, but is less performant. */
  156. }
  157.  
  158. .cover-image4 {
  159. width: 100%;
  160. min-height: 100%; /* gives the effect a bit of room to breathe */
  161. position: relative;
  162. background: url(http://www.led-flex.co.uk/media/wysiwyg/parallex/led1.jpg) fixed 50%/cover; /* This is the bottom image, blurred and grayscaled. Could also use filters to do this + another pseudoel, but is less performant. */
  163. }
  164.  
  165.  
  166. .cover-image5:after {
  167. content: '';
  168. position: absolute;
  169. width: inherit;
  170. height: inherit;
  171. background: inherit;
  172. background-image: url(http://www.led-flex.co.uk/media/wysiwyg/parallex/led6.jpg);
  173. mask: linear-gradient(to bottom, white 30%, transparent); /* Top image is masked with a gradient */
  174. }
  175.  
  176. .cover-image6 {
  177. width: 100%;
  178. min-height: 100%; /* gives the effect a bit of room to breathe */
  179. position: relative;
  180. background: url(http://www.led-flex.co.uk/media/wysiwyg/parallex/led3.jpg) fixed 50%/cover; /* This is the bottom image, blurred and grayscaled. Could also use filters to do this + another pseudoel, but is less performant. */
  181. }
  182.  
  183. HTML
  184.  
  185. <!DOCTYPE html>
  186. <html lang="">
  187. <head>
  188. <meta charset="UTF-8">
  189. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  190. <meta name="description" content="">
  191. <meta name="author" content="">
  192. <title>CSS + Image Blur</title>
  193. <link rel="shortcut icon" href="">
  194. <link rel="stylesheet" href="styleboii.css">
  195. </head>
  196.  
  197. <body>
  198. <div class="cover-image"><div class="ptextdark">
  199. <p>PREMIUM LIGHTING</p>
  200. <div class="bannertextdark">
  201. DELIVERED GLOBALLY
  202. </div>
  203. <a class="linkorange" href="http://www.led-flex.co.uk/profile.html">&nbsp;DISTRIBUTORS</a>
  204. </div></div>
  205. <div class="cover-image2"><div class="overlay"></div></div>
  206. <div class="cover-image3"></div>
  207. <div class="cover-image4"><div class="overlay"></div></div>
  208. <div class="cover-image5"></div>
  209. <div class="cover-image6"><div class="overlay"></div></div>
  210.  
  211. </body>
  212. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement