Advertisement
Guest User

SDC coverpage

a guest
May 27th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <title>W3.CSS</title>
  4. <meta name="viewport" content="width=device-width, initial-scale=1">
  5. <link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css">
  6. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
  7. <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css">
  8. <style>
  9. body,h1,h2,h3,h4,h5,h6 {font-family: "Lato", sans-serif;}
  10. body, html {
  11. height: 100%;
  12. color: #777;
  13. line-height: 1.8;
  14. }
  15.  
  16. /* Create a Parallax Effect */
  17. .bgimg-1, .bgimg-2, .bgimg-3 {
  18. opacity: 0.7;
  19. background-attachment: fixed;
  20. background-position: center;
  21. background-repeat: no-repeat;
  22. background-size: cover;
  23. }
  24.  
  25. /* First image (Logo. Full height) */
  26. .bgimg-1 {
  27. background-image: url('930b19ee67.png');
  28. min-height: 100%;
  29. min-width: 100%;
  30. background-size: 1000px 920px;
  31. }
  32.  
  33.  
  34. /* Adjust the position of the parallax image text */
  35. .w3-display-middle {bottom: 45%;}
  36.  
  37. .w3-wide {letter-spacing: 10px;}
  38.  
  39. .w3-hover-opacity {cursor: pointer;}>
  40.  
  41.  
  42. .w3-red:hover{
  43. background-color: green;
  44.  
  45. }
  46.  
  47. @keyframes fade {
  48. 0% {
  49. background-color: red;
  50. }
  51.  
  52. 100% {
  53. background-color: green;
  54. }
  55. }
  56.  
  57.  
  58. #bg1:hover{
  59. background-color: green;
  60. animation: fade 1.5s;
  61. animation-iteration-count: 1;
  62. animation-direction: alternate;
  63. }
  64.  
  65. #bg1{
  66. background-color: red;
  67. color: white;
  68. animation-iteration-count: 1;
  69.  
  70. }
  71.  
  72. @keyframes annoyance {
  73. 0% {
  74. background-color: red;
  75. }
  76. 100% {
  77. background-color: orange;
  78. }
  79. }
  80.  
  81. .w3-display-container{
  82. animation: annoyance 5s infinite;
  83. animation-fill-mode: backwards;
  84. animation-direction: alternate-reverse;
  85. }
  86.  
  87. .w3-padding-large {
  88. color: white;
  89. }
  90.  
  91. #homeButton:hover {
  92. background-color: transparent;
  93. color: #ccc;
  94. }
  95.  
  96.  
  97. @keyframes spinNav
  98. {
  99. 0% {transform: rotate(0deg); transform-origin: 0% 50% 0%;}
  100. 100% {transform: rotate(360deg); transform-origin: 0% 50% 0%;}
  101. }
  102.  
  103. .w3-padding-large{
  104. animation: spinNav 0.5s;
  105. animation-iteration-count: 1;
  106. }
  107.  
  108. #bg2{
  109. color: white;
  110. background-color: transparent;
  111. }
  112.  
  113. #bg2:hover{
  114. color: #ccc;
  115. animation: spinNav 1.5s infinite;
  116. }
  117.  
  118.  
  119. </style>
  120. <body>
  121.  
  122. <!-- Navbar (sit on top) -->
  123. <div class="w3-top">
  124. <ul class="w3-navbar" id="myNavbar">
  125. <li><a href="#" class="w3-padding-large" id="homeButton">HOME</a></li>
  126. <li class="w3-hide-small w3-right" id="search">
  127. <a href="#" class="w3-padding-large" id="bg2"><i class="fa fa-search"></i></a>
  128. </li>
  129. </ul>
  130. </div>
  131.  
  132. <!-- First Parallax Image with Logo Text -->
  133. <div class="bgimg-1 w3-opacity w3-display-container">
  134. <div class="w3-display-middle">
  135. <span class="w3-center w3-padding-xlarge w3-xlarge w3-wide w3-animate-opacity" id="bg1">SMILING DOG CREW</span>
  136. </div>
  137. </div>
  138.  
  139.  
  140. <!-- Footer -->
  141. <!--<footer class="w3-center w3-dark-grey w3-padding-48 w3-hover-black">-->
  142. <!--<p>Powered by <a href="http://www.w3schools.com/w3css/default.asp" title="W3.CSS" target="_blank" class="w3-hover-opacity">w3.css</a></p>-->
  143. <!--</footer>-->
  144.  
  145. <script>
  146.  
  147. // Modal Image Gallery
  148. function onClick(element) {
  149. document.getElementById("img01").src = element.src;
  150. document.getElementById("modal01").style.display = "block";
  151. }
  152.  
  153. // Change style of navbar on scroll
  154. window.onscroll = function() {myFunction()};
  155. function myFunction() {
  156. var navbar = document.getElementById("myNavbar");
  157. if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
  158. navbar.className = "w3-navbar" + " w3-card-2" + " w3-animate-top" + " w3-white";
  159. } else {
  160. navbar.className = navbar.className.replace(" w3-card-2 w3-animate-top w3-white", "");
  161. }
  162. }
  163.  
  164. </script>
  165.  
  166. </body>
  167. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement