Guest User

Untitled

a guest
Jan 23rd, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title></title>
  4.  
  5. <style>
  6.  
  7. html {
  8. height: 100%;
  9. overflow: hidden;
  10. }
  11.  
  12. body {
  13. margin:0;
  14. padding:0;
  15. perspective: 1px;
  16. transform-style: preserve-3d;
  17. height: 100%;
  18. overflow-y: scroll;
  19. overflow-x: hidden;
  20. font-family: 'Lora', serif;
  21. }
  22.  
  23.  
  24. h1 {
  25. font-size: 250%
  26. }
  27.  
  28. p {
  29. font-size: 140%;
  30. line-height: 150%;
  31. color: #333;
  32. }
  33.  
  34. .slide {
  35. position: relative;
  36. padding: 25vh 10%;
  37. min-height: 100vh;
  38. width: 100vw;
  39. box-sizing: border-box;
  40. box-shadow: 0 -1px 10px rgba(0, 0, 0, .7);
  41. transform-style: inherit;
  42. color: #fff;
  43. text-shadow: 0 5px 5px #808080;
  44. }
  45.  
  46. img {
  47. position: absolute;
  48. top: 50%;
  49. left: 35%;
  50. width: 320px;
  51. height: 240px;
  52. transform: translateZ(.25px) scale(.75) translateX(-94%) translateY(-100%) rotate(2deg);
  53. padding: 10px;
  54. border-radius: 5px;
  55. background: rgba(240,230,220, .7);
  56. box-shadow: 0 0 8px rgba(0, 0, 0, .7);
  57. }
  58.  
  59. img:last-of-type {
  60. transform: translateZ(.4px) scale(.6) translateX(-104%) translateY(-40%) rotate(-5deg);
  61. }
  62.  
  63. .slide:before {
  64. content: "";
  65. position: absolute;
  66. top: 0;
  67. bottom: 0;
  68. left: 0;
  69. right: 0;
  70. box-shadow: 0 0 8px 1px rgba(0, 0, 0, .7);
  71. }
  72.  
  73. .title {
  74. width: 50%;
  75. padding: 3%;
  76. border-radius: 5px;
  77. background: rgba(240,230,220, .7);
  78. box-shadow: 0 0 8px rgba(0, 0, 0, .7);
  79. }
  80.  
  81. .slide:nth-child(2n) .title {
  82. margin-left: 0;
  83. margin-right: auto;
  84. }
  85.  
  86. .slide:nth-child(2n+1) .title {
  87. margin-left: auto;
  88. margin-right: 0;
  89. }
  90.  
  91. .slide, .slide:before {
  92. background: 50% 50% / cover;
  93. }
  94.  
  95. .header {
  96. text-align: center;
  97. font-size: 175%;
  98. color: #fff;
  99. text-shadow: 0 5px 5px #008000;
  100. }
  101.  
  102. #title {
  103. background-image: url("code1.jpg");
  104. z-index:2;
  105. }
  106.  
  107. #title h1 {
  108. transform: translateZ(.25px) scale(.75);
  109. transform-origin: 50% 100%;
  110. color: #fff;
  111. text-shadow: 0 5px 5px #008000;
  112. }
  113.  
  114. #slide1:before {
  115. background-image: url("code2.jpg");
  116. transform: translateZ(-1px) scale(2);
  117.  
  118. }
  119.  
  120. #slide2 {
  121. background-image: url("code3.jpg");
  122. z-index:2;
  123. }
  124.  
  125. #slide3:before {
  126. background-image: url("dark.jpg");
  127. transform: translateZ(-1px) scale(2);
  128. }
  129.  
  130. #slide4 {
  131. background: #222;
  132. }
  133.  
  134.  
  135. @media screen and (max-width: 1020px) {
  136. #title, #slide1, #slide2, #slide3, #slide4 {
  137. float: none;
  138. width: auto;
  139. overflow-y: scroll;
  140. overflow-x: scroll;
  141. }
  142. }
  143.  
  144.  
  145. </style>
  146. </head>
  147.  
  148. <body>
  149. <div id="title" class="slide header">
  150. <h1>
  151. </h1>
  152. </div>
  153. <div id="slide1" class="slide">
  154. <div class="title">
  155. <h1>About me</h1>
  156. <p></p>
  157. </div>
  158. </div>
  159. <div id="slide2" class="slide">
  160. <div class="title">
  161. <h1>Skill set</h1>
  162. <p></p>
  163. </div>
  164. <img src="code1.jpg">
  165. <img src="hype.jpg">
  166.  
  167.  
  168.  
  169.  
  170. </div>
  171. <div id="slide3" class="slide">
  172.  
  173. <div class="title">
  174.  
  175. <h1>Why choose me?</h1>
  176.  
  177. <p></p>
  178.  
  179. </div>
  180. </div>
  181.  
  182. <div id="slide4" class="slide header">
  183.  
  184. <h1></h1>
  185.  
  186. <p></p>
  187.  
  188. </div>
  189.  
  190. </body>
  191. </html>
  192.  
  193. @media screen and (max-width: 1020px) {
  194. .slide .title {
  195. position: relative;
  196. z-index: 5;
  197. }
  198. }
Add Comment
Please, Sign In to add comment