cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

            
              <div class="billboard-container">
  <div class="foreground"></div>
  <div class="boat-1"></div>
  <div class="boat-2"></div>
  <div class="boat-3-right"></div>
  <div class="cloud-1"></div>
  <div class="cloud-2"></div>
  <div class="cloud-3"></div>
  <div class="bird-2"></div>
  <div class="bird-1"></div>
  <div class="bird-animation-left"></div>
  <div class="bird-animation-right"></div>
  <div class="whale-1"></div>
  <div class="whale-2"></div>
</div>
<iframe width="0" height="0" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/27693096&amp;color=ff5500&amp;auto_play=true&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false"></iframe>
            
          
!
            
              .billboard-container {
  background-size: cover;
  display: block;
  height: 348px;
  margin: 0 auto;
  max-width: 1080px;
  overflow: hidden;
  width: 100%;
}
.foreground {
  background-size: cover;
  display: block;
  height: 348px;
  margin: 0 auto;
  max-width: 1080px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  z-index: 1000;
  width: 100%;
}

/* CLOUDS ANIMATION */
.cloud-1,
.cloud-2,
.cloud-3 {
  position: absolute;
  display: block;
  height: 100%;
  max-width: 1080px;
  max-height: 348px;
  overflow: hidden;
  width: 100%;
}

.cloud-1 {
  animation: cloud-1-animation 140s infinite;
  animation-timing-function: linear;
  background: url('https://www.ucsc.edu/features/images/holidays-2015/cloud-1.svg') no-repeat;
}

.cloud-2 {
  animation: cloud-2-animation 140s infinite;
  animation-delay: 40s;
  animation-timing-function: linear;
  background: url('https://www.ucsc.edu/features/images/holidays-2015/cloud-2.svg') no-repeat;
  background-position: -165px .5em;
}

.cloud-3 {
  animation: cloud-3-animation 140s infinite;
  animation-delay: 80s;
  animation-timing-function: linear;
  background: url('https://www.ucsc.edu/features/images/holidays-2015/cloud-3.svg') no-repeat;
  background-position: -165px .5em;
}

@keyframes cloud-1-animation {
  0% {
    background-position: -335px 3em;
  }
  100% {
    background-position: 1400px 3em;
  }
}

@keyframes cloud-2-animation {
  0% {
    background-position: -165px .5em;
  }
  100% {
    background-position: 1400px .5em;
  }
}

@keyframes cloud-3-animation {
  0% {
    background-position: -165px 1.25em;
  }
  100% {
    background-position: 1400px 1.25em;
  }
}

/* BOAT ANIMATIONS */
.boat-1,
.boat-2,
.boat-3-right {
  position: absolute;
  height: 100%;
  max-width: 1080px;
  max-height: 348px;
  overflow: hidden;
  width: 100%;
}

.boat-1 {
  animation: boat-1-animation 50s infinite;
  animation-timing-function: cubic-bezier(.17,.67,.83,.67);
  background: url('https://www.ucsc.edu/features/images/holidays-2015/boat-1.svg') no-repeat;
  background-position: 25% 85%;
}

.boat-2 {
  animation: boat-2-animation 60s infinite;
  animation-delay: 80s;
  animation-timing-function: cubic-bezier(.17,.67,.83,.67);
  background: url('https://www.ucsc.edu/features/images/holidays-2015/boat-1.svg') no-repeat;
  background-position: 12% 92%;
}

.boat-3-right {
  animation: boat-3-animation 80s infinite;
  animation-timing-function: cubic-bezier(.17,.67,.83,.67);
  background: url('https://www.ucsc.edu/features/images/holidays-2015/boat-2.svg') no-repeat;
  background-position: 95% 92%;
}

@keyframes boat-1-animation {
  0% {
    display: none;
    background-position: 25% 85%;
    opacity: 0;
  }
  1% {
    display: block;
    background-position: 25% 85%;
    opacity: 1;
  }
  
  100% {
    display: block;
    background-position: 40% 50%;
    opacity: 0;
  }
}

@keyframes boat-2-animation {
  0% {
    display: none;
    background-position: 12% 92%;
    opacity: 0;
  }
  1% {
    display: block;
    background-position: 12% 92%;
    opacity: 1;
  }
  
  100% {
    display: block;
    background-position: 35% 50%;
    opacity: 0;
  }
}

@keyframes boat-3-animation {
  0% {
    display: none;
    background-position: 95% 92%;
    opacity: 1;
  }
  1% {
    display: block;
    background-position: 95% 92%;
    opacity: 1;
  }
  
  100% {
    display: block;
    background-position: 75% 50%;
    opacity: 0;
  }
}

.whale-1
.whale-2 {
  display: block;
  position: absolute;
}

.whale-1 {
  z-index: 20;
}
.whale-2 {
  z-index: 350;
  transform: rotateY(180deg);
}

/*Whales*/
.whale-1 {
  animation: whale-1-animation steps(16) 30s infinite;
  animation-delay: 5s;
  background: url('https://www.ucsc.edu/features/images/holidays-2015/whales.svg') 0 50px no-repeat;
  height: 50px;
  width: 175px;
}

.whale-2 {
  animation: whale-1-animation steps(16) 30s infinite;
  animation-delay: 8s;
  background: url('https://www.ucsc.edu/features/images/holidays-2015/whales.svg') 0 50px no-repeat;
  height: 50px;
  width: 175px;
}

@keyframes whale-1-animation {
  0% {
    background-position: 0 0;
  }
  5% {
    background-position: 0 -800px;
  }
  100% {
    background-position: 0 -800px;
  }
}

/*BIRDS*/
.bird-1,
.bird-2,
.bird-animation-left,
.bird-aniamtion-right {
  position: absolute;
}

.bird-1,
.bird-2 {
  height: 35px;
  width: 75px;
}

.bird-animation-left,
.bird-animation-right {
  z-index: 1000;
}

.bird-animation-left {
  animation-delay: 5s;
}

.bird-animation-right {
  float: right;
  transform: rotateY(180deg);
  animation-delay: 10s;
}

.bird-1,
.bird-2 {
  animation: bird-1-animation steps(7) 1s infinite;
  background: url('https://www.ucsc.edu/features/images/holidays-2015/bird-animation.svg') 0 35px no-repeat;
}

.bird-animation-left,
.bird-animation-right {
  animation: bird-2-animation steps(32) 5s infinite;
  background: url('https://www.ucsc.edu/features/images/holidays-2015/bird-animation-left.svg') 0 50px no-repeat;
  height: 50px;
  width: 200px;
}

.bird-animation-right {
  animation-delay: 8s;
}

@keyframes bird-1-animation {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 -245px;
  }
}

@keyframes bird-2-animation {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 0 -1600px;
  }
  100% {
    background-position: 0 -1600px;
  }
}

/* Breakpoints */
@media screen and (max-width: 31.125em) {
  .billboard-container {
    background: #C0D9EF url('https://www.ucsc.edu/features/images/holidays-2015/mobile-background.svg') no-repeat;
    background-position: -17.5em 0;
   }
  
  .foreground {
    background: url('https://www.ucsc.edu/features/images/holidays-2015/mobile-foreground.svg') no-repeat;
    background-position: -17.5em 0;
  }
  
  .whale-1 {
    margin: 40% 0 0 42%;
   }
   .whale-2 {
     margin: -10% 0 3% 30%;
   }
  
  .bird-1 {
    display: none;
  }

  .bird-2 {
    margin: 3.5em 8em;
    z-index: 301;
  }
  
}

@media screen and (min-width: 31.1875em) {
  .billboard-container {
    background: #C0D9EF url('https://www.ucsc.edu/features/images/holidays-2015/background.svg') no-repeat;
    background-position: -17.5em 0;
   }
  
  .foreground {
    background: url('https://www.ucsc.edu/features/images/holidays-2015/foreground.svg') no-repeat;
    background-position: -17.5em 0;
  }
  
  .whale-1 {
    margin: 50% 0 0 35%;
   }
   .whale-2 {
     margin: -10% 0 3% 30%;
   }
  
  .bird-1 {
    display: none;
  }

  .bird-2 {
    margin: 10% 20% 0;
    z-index: 301;
  }

}
  
@media screen and (min-width: 37.5em) {
  .billboard-container {
    background: #C0D9EF url('https://www.ucsc.edu/features/images/holidays-2015/background.svg') no-repeat;
    background-position: center;
   }
  
  .foreground {
    background: url('https://www.ucsc.edu/features/images/holidays-2015/foreground.svg') no-repeat;
    background-position: center;
  }
  
  .whale-1 {
    margin: 23% 0 0 35%;
   }
   .whale-2 {
     margin: -3.25% 0 3% 30%;
   }
  
  .bird-1 {
    margin: 1.5em 5em;
    z-index: 300;
  }

  .bird-2 {
    margin: 3em 8em;
    z-index: 301;
  }
}

/*tablet*/
@media screen and (min-width: 48em) {
  .billboard-container {
    background: #C0D9EF url('https://www.ucsc.edu/features/images/holidays-2015/background.svg') no-repeat;
    background-position: center;
   }
  
  .foreground {
    background: url('https://www.ucsc.edu/features/images/holidays-2015/foreground.svg') no-repeat;
    background-position: center;
  }
  
  .whale-1 {
     margin: 23% 0 0 40%;
   }
   .whale-2 {
     margin: -3.25% 0 3% 30%;
   }

  .bird-1 {
    display: block;
    margin: 1.5em 20em;
    z-index: 300;
  }

  .bird-2 {
    margin: 3em 25em;
    z-index: 301;
  }
}

 @media screen and (min-width: 60em) {
   .whale-1 {
     margin: 15% 0 0 40%;
   }
   .whale-2 {
     margin: -2% 0 3% 45%;
   }
}

.off {
  display: block;
  position: absolute;
  z-index: 600;
  margin
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console