Guguita

PROBLEMA COM VIDEO BACKGROUND

Nov 14th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.17 KB | None | 0 0
  1. *** HTML *** <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>FODA-SE</title>
  5.  
  6. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/css/bootstrap.min.css" integrity="sha384-AysaV+vQoT3kOAXZkl02PThvDr8HYKPZhNT5h/CXfBThSRXQ6jW5DO2ekP5ViFdi" crossorigin="anonymous">
  7.  
  8. <link rel="stylesheet" type="text/css" href="css/style.css">
  9.  
  10. <link href="https://fonts.googleapis.com/css?family=Droid+Sans" rel="stylesheet">
  11.  
  12. </head>
  13. <body>
  14.  
  15. <div>
  16.  
  17. <div class="wrap">
  18. <div class="content">
  19. <h1>HI!</h1><br>
  20. <h1>I'M</h1><br>
  21. <h1 class="element"><span class="typed-cursor"></span></h1>
  22.  
  23. </div>
  24. </div>
  25. <video autoplay="autoplay" loop="loop" class="video-bg">
  26.  
  27. <source src="media/computer.mp4" type="video/mp4">
  28.  
  29. </video>
  30. <div class="wrapper">
  31. <button class="knowMoreBtn">Know more</button>
  32. </div>
  33. </div>
  34.  
  35. <div class="container">
  36. <div class="row">
  37. <div class="col-md-3"></div>
  38. <div class="col-md-3"></div>
  39. <div class="col-md-3"></div>
  40. <div class="col-md-3"></div>
  41. </div>
  42. </div>
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/js/bootstrap.min.js" integrity="sha384-BLiI7JTZm+JWlgKa0M0kGRpJbF2J8q+qreVrKBC47e3K6BW78kGLrCkeRX6I9RoK" crossorigin="anonymous"></script>
  55.  
  56. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js" integrity="
  57. sha384-3ceskX3iaEnIogmQchP8opvBy3Mi7Ce34nWjpBIwVTHfGYWQS9jwHDVRnpKKHJg7" crossorigin="anonymous"></script>
  58.  
  59. <script src="typed.js"></script>
  60. <script>
  61. $(function(){
  62. $(".element").typed({
  63. strings: ["GUSTAVO.", "...", "WEB DEVELOPER", "GAMER", "GEEK", "AND", "SEXY ;)"],
  64. typeSpeed: 95,
  65. showCursor: true,
  66. cursorChar: "|",
  67. backdelay: 150,
  68. loop: false,
  69. backSpeed: 95
  70.  
  71.  
  72.  
  73. });
  74. });
  75. </script>
  76.  
  77.  
  78.  
  79. </body>
  80. </html>
  81.  
  82.  
  83.  
  84.  
  85. *** CSS ***
  86.  
  87.  
  88. *{
  89. margin: 0;
  90. padding: 0;
  91. border: 0;
  92. box-sizing: border-box;
  93. }
  94.  
  95. html, body{
  96. margin: 0px;
  97. padding-top: 0px;
  98. }
  99.  
  100.  
  101. .video-bg{
  102. position: fixed;
  103. top: 50%; left: 50%;
  104. z-index: ;
  105. min-width: 100%;
  106. min-height: 65%;
  107. width: auto;
  108. height: auto;
  109. transform: translate(-50%, -50%);
  110.  
  111. }
  112.  
  113. div h1{
  114. z-index: 2;
  115. position: relative;
  116. top: 100px;
  117. font-size: 80px;
  118. color: #E91E63;
  119. text-align: center;
  120. font-family: 'Droid Sans', sans-serif;
  121. font-weight: bold;
  122. }
  123.  
  124. .typed-cursor{
  125. opacity: 1;
  126. -webkit-animation: blink 0.7s infinite;
  127. -moz-animation: blink 0.7s infinite;
  128. animation: blink 0.7s infinite;
  129. margin: 0 auto;
  130. position: relative;
  131. }
  132.  
  133. @keyframes blink{
  134. 0% { opacity:1; }
  135. 50% { opacity:0; }
  136. 100% { opacity:1; }
  137. }
  138. @-webkit-keyframes blink{
  139. 0% { opacity:1; }
  140. 50% { opacity:0; }
  141. 100% { opacity:1; }
  142. }
  143. @-moz-keyframes blink{
  144. 0% { opacity:1; }
  145. 50% { opacity:0; }
  146. 100% { opacity:1; }
  147. }
  148.  
  149. .knowMoreBtn{
  150. z-index: 3;
  151. height: 50px;
  152. width: 150px;
  153. position: absolute;
  154. left: 50%;
  155. transform: translate(-50%, 0);
  156. background-color: rgba(158, 158, 158, 0.8);
  157. border: 4px solid #E91E63;
  158. font-size: 22px;
  159. color: white;
  160. top: 600px;
  161.  
  162. }
  163.  
  164. .knowMoreBtn:focus{
  165. outline: none;
  166. }
Advertisement
Add Comment
Please, Sign In to add comment