Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.65 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: 100%; /* gives the effect a bit of room to breathe */
  140. position: relative;
  141. background: url(https://i.imgur.com/3Z9m5fQ.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. transition: background-image 100ms linear;
  143. }
  144.  
  145. .cover-image2 {
  146. width: 100%;
  147. min-height: 100%; /* gives the effect a bit of room to breathe */
  148. position: relative;
  149. 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. */
  150. }
  151.  
  152. .cover-image3 {
  153. width: 100%;
  154. min-height: 100%; /* gives the effect a bit of room to breathe */
  155. position: relative;
  156. 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. */
  157. }
  158.  
  159. .cover-image4 {
  160. width: 100%;
  161. min-height: 100%; /* gives the effect a bit of room to breathe */
  162. position: relative;
  163. 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. */
  164. }
  165.  
  166.  
  167. .cover-image5:after {
  168. content: '';
  169. position: absolute;
  170. width: inherit;
  171. height: inherit;
  172. background: inherit;
  173. background-image: url(http://www.led-flex.co.uk/media/wysiwyg/parallex/led6.jpg);
  174. mask: linear-gradient(to bottom, black 20%, transparent); /* Top image is masked with a gradient */
  175. }
  176.  
  177. .cover-image6 {
  178. width: 100%;
  179. min-height: 100%; /* gives the effect a bit of room to breathe */
  180. position: relative;
  181. 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. */
  182. }
  183.  
  184. HTML
  185.  
  186. <!DOCTYPE html>
  187. <html lang="">
  188. <head>
  189. <meta charset="UTF-8">
  190. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  191. <meta name="description" content="">
  192. <meta name="author" content="">
  193. <title>CSS + Image Blur</title>
  194. <link rel="shortcut icon" href="">
  195. <link rel="stylesheet" href="styleboii.css">
  196. </head>
  197.  
  198. <body>
  199. <div class="cover-image"><div class="ptextdark">
  200. <p>PREMIUM LIGHTING</p>
  201. <div class="bannertextdark">
  202. DELIVERED GLOBALLY
  203. </div>
  204. <a class="linkorange" href="http://www.led-flex.co.uk/profile.html">&nbsp;DISTRIBUTORS</a>
  205. </div></div>
  206. <div class="cover-image2"><div class="overlay"></div></div>
  207. <div class="cover-image3"></div>
  208. <div class="cover-image4"><div class="overlay"></div></div>
  209. <div class="cover-image5"></div>
  210. <div class="cover-image6"><div class="overlay"></div></div>
  211.  
  212. </body>
  213. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement