Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="cloud cloud-one"><img src="http://www.laurasportfishing.net/wp-content/themes/hookemtheme/images/cloud.png" alt="" /></div>
<div class="cloud cloud-two"><img src="http://www.laurasportfishing.net/wp-content/themes/hookemtheme/images/cloud.png" alt="" /></div>
<section class="fishing-area">
  
  <div class="fishing-line"></div>
  <figure class="fishing-lure">
    <img src="http://www.laurasportfishing.net/wp-content/themes/hookemtheme/images/fish-lure.png" alt="hope and a prayer lure">
  </figure>
</section>
<figure class="striper swim">
  <img src="http://www.laurasportfishing.net/wp-content/themes/hookemtheme/images/striper.png" alt="Elusive Striped Bass">
</figure>

<footer>
  <div class="wave-border"></div>
  <section class="ocean"></section>
</footer>
              
            
!

CSS

              
                body {
  overflow: hidden;
}
img {width: 100%;}
.cloud-one {
  width: 200px;
  position: absolute;
  right: -300px;
  top: 120px;
}
.cloud-two {
  width: 150px;
  position: absolute;
  right: -500px;
  top: 0;
}
  .cloud {
    -webkit-animation: leisurelyCloud 60s linear alternate infinite;
    -moz-animation: leisurelyCloud 60s linear alternate infinite;
    animation: leisurelyCloud 60s linear alternate infinite;
}
@-webkit-keyframes leisurelyCloud {
  0% {-webkit-transform: translateX(0%);}
  100% {-webkit-transform: translateX(-600%);}
}
@-moz-keyframes leisurelyCloud {
  0% {-moz-transform: translateX(0%);}
  100% {-moz-transform: translateX(-600%);}
}
@keyframes leisurelyCloud {
  0% {transform: translateX(0%);}
  100% {transform: translateX(-600%);}
}
.fishing-area {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 160px;
  .fishing-line {
    height: 40px;
    width: 1px;
    background-color: #000;
    position: absolute;
    left: 120px;
    -webkit-animation: linedrop 3s ease-in-out infinite alternate;
    -moz-animation: linedrop 3s ease-in-out infinite alternate;
    animation: linedrop 3s ease-in-out infinite alternate;
  }
  .fishing-lure {
    width: 25px;
    position: absolute;
    left: 113px;
    top:40px;
    -webkit-animation: droplure 3s ease-in-out infinite alternate;
    -moz-animation: droplure 3s ease-in-out infinite alternate;
    animation: droplure 3s ease-in-out infinite alternate;
  }
}
@-webkit-keyframes droplure {
  0% {-webkit-transform: translateY(0px);}
  100% {-webkit-transform: translateY(300px);}
}
@-moz-keyframes droplure {
  0% {-moz-transform: translateY(0px);}
  100% {-moz-transform: translateY(300px);}
}
@keyframes droplure {
  0% {transform: translateY(0px);}
  100% {transform: translateY(300px);}
}
@-webkit-keyframes linedrop {
  0% {height: 40px;}
  100% {height: 340px;}
}
@-moz-keyframes linedrop {
  0% {height: 40px;}
  100% {height: 340px;}
}
@keyframes linedrop {
  0% {height: 40px;}
  100% {height: 340px;}
}


footer {
  height: 115px;
  width: 100%;
  overflow: hidden;
}
$gray:  #555;
.wave-border {
  height: 15px;
  width: 100%;
  position: fixed;
  bottom: 100px;
  background: url('http://www.laurasportfishing.net/wp-content/themes/hookemtheme/images/wave-border.png') repeat-x 0 0;
}
.ocean {
  height: 100px;
  width: 100%;
  position: fixed;
  bottom: 0;
  background-color: $gray;
}
.striper {
  width: 200px;
  position: absolute;  
  left: 50%;
  margin-left: -100px;
  bottom: 40px;
}
.swim {
  -webkit-animation: swim 3s linear both 2s infinite;
  -moz-animation: swim 3s linear both 2s infinite;
  animation: swim 3s linear both 2s infinite;
}

@-webkit-keyframes swim {
  0% {-webkit-transform: translate(200%, 75%) rotate(0deg)}
  20%{ -webkit-transform: translate(100%, -55%) rotate(40deg)}
  40%{ -webkit-transform: translate(0%, -125%) rotate(-20deg)}
  60%{ -webkit-transform: translate(-100%, -55%) rotate(-30deg)}
  80% {-webkit-transform: translate(-200%, 75%) rotate(-50deg)}
  100% {-webkit-transform: translate(-300%, 200%) rotate(-50deg)}
}
@-moz-keyframes swim {
  0% {-moz-transform: translate(200%, 75%) rotate(0deg)}
  20%{ -moz-transform: translate(100%, -55%) rotate(40deg)}
  40%{ -moz-transform: translate(0%, -125%) rotate(-20deg)}
  60%{ -moz-transform: translate(-100%, -55%) rotate(-30deg)}
  80% {-moz-transform: translate(-200%, 75%) rotate(-50deg)}
  100% {-moz-transform: translate(-300%, 200%) rotate(-50deg)}
}
@keyframes swim {
  0% {transform: translate(200%, 75%) rotate(0deg)}
  20%{ transform: translate(100%, -55%) rotate(40deg)}
  40%{ transform: translate(0%, -125%) rotate(-20deg)}
  60%{ transform: translate(-100%, -55%) rotate(-30deg)}
  80% {transform: translate(-200%, 75%) rotate(-50deg)}
  100% {transform: translate(-300%, 200%) rotate(-50deg)}
}
.wave-border {
  width: 2000px;
  margin-left: -360px;
  -webkit-animation: waves 10s linear alternate infinite;
  -moz-animation: waves 10s linear alternate infinite;
  animation: waves 10s linear alternate infinite;
}
@-webkit-keyframes waves {
  0% {-webkit-transform: translateX(0px)}
  100% {-webkit-transform: translateX(360px)}
}
@-moz-keyframes waves {
  0% {-moz-transform: translateX(0px)}
  100% {-moz-transform: translateX(360px)}
}
@keyframes waves {
  0% {transform: translateX(0px)}
  100% {transform: translateX(360px)}
}
              
            
!

JS

              
                
              
            
!
999px

Console