Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <title>W3.CSS</title>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css">
- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
- <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css">
- <style>
- body,h1,h2,h3,h4,h5,h6 {font-family: "Lato", sans-serif;}
- body, html {
- height: 100%;
- color: #777;
- line-height: 1.8;
- }
- /* Create a Parallax Effect */
- .bgimg-1, .bgimg-2, .bgimg-3 {
- opacity: 0.7;
- background-attachment: fixed;
- background-position: center;
- background-repeat: no-repeat;
- background-size: cover;
- }
- /* First image (Logo. Full height) */
- .bgimg-1 {
- background-image: url('930b19ee67.png');
- min-height: 100%;
- min-width: 100%;
- background-size: 1000px 920px;
- }
- /* Adjust the position of the parallax image text */
- .w3-display-middle {bottom: 45%;}
- .w3-wide {letter-spacing: 10px;}
- .w3-hover-opacity {cursor: pointer;}>
- .w3-red:hover{
- background-color: green;
- }
- @keyframes fade {
- 0% {
- background-color: red;
- }
- 100% {
- background-color: green;
- }
- }
- #bg1:hover{
- background-color: green;
- animation: fade 1.5s;
- animation-iteration-count: 1;
- animation-direction: alternate;
- }
- #bg1{
- background-color: red;
- color: white;
- animation-iteration-count: 1;
- }
- @keyframes annoyance {
- 0% {
- background-color: red;
- }
- 100% {
- background-color: orange;
- }
- }
- .w3-display-container{
- animation: annoyance 5s infinite;
- animation-fill-mode: backwards;
- animation-direction: alternate-reverse;
- }
- .w3-padding-large {
- color: white;
- }
- #homeButton:hover {
- background-color: transparent;
- color: #ccc;
- }
- @keyframes spinNav
- {
- 0% {transform: rotate(0deg); transform-origin: 0% 50% 0%;}
- 100% {transform: rotate(360deg); transform-origin: 0% 50% 0%;}
- }
- .w3-padding-large{
- animation: spinNav 0.5s;
- animation-iteration-count: 1;
- }
- #bg2{
- color: white;
- background-color: transparent;
- }
- #bg2:hover{
- color: #ccc;
- animation: spinNav 1.5s infinite;
- }
- </style>
- <body>
- <!-- Navbar (sit on top) -->
- <div class="w3-top">
- <ul class="w3-navbar" id="myNavbar">
- <li><a href="#" class="w3-padding-large" id="homeButton">HOME</a></li>
- <li class="w3-hide-small w3-right" id="search">
- <a href="#" class="w3-padding-large" id="bg2"><i class="fa fa-search"></i></a>
- </li>
- </ul>
- </div>
- <!-- First Parallax Image with Logo Text -->
- <div class="bgimg-1 w3-opacity w3-display-container">
- <div class="w3-display-middle">
- <span class="w3-center w3-padding-xlarge w3-xlarge w3-wide w3-animate-opacity" id="bg1">SMILING DOG CREW</span>
- </div>
- </div>
- <!-- Footer -->
- <!--<footer class="w3-center w3-dark-grey w3-padding-48 w3-hover-black">-->
- <!--<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>-->
- <!--</footer>-->
- <script>
- // Modal Image Gallery
- function onClick(element) {
- document.getElementById("img01").src = element.src;
- document.getElementById("modal01").style.display = "block";
- }
- // Change style of navbar on scroll
- window.onscroll = function() {myFunction()};
- function myFunction() {
- var navbar = document.getElementById("myNavbar");
- if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
- navbar.className = "w3-navbar" + " w3-card-2" + " w3-animate-top" + " w3-white";
- } else {
- navbar.className = navbar.className.replace(" w3-card-2 w3-animate-top w3-white", "");
- }
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement