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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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="frame">
    <div class="sea">
        <div class="wave"></div>
        <div id="wave2"></div>
    </div>
    
    

<svg class="svg" xmlns="http://www.w3.org/2000/svg" id="seaside" viewBox="0 0 686 1006">
  <style>
    .st0{fill:#4CCC9E;} .st1{fill:#F9604B;} .st2{fill:#FFFFFF;} .st3{fill:#EDEDED;} .st4{fill:#423666;} .st5{fill:#B8ECF2;} .st6{fill:rgba(42, 139, 182, 0.2);}
  </style>
  <path id="sea" d="M0 295v711h686.3V295H0z" class="st0"/>
  <g id="lightHouse">
    <ellipse id="tower-tip" cx="432.8" cy="356.9" class="st1" rx="5.3" ry="9.8"/>
    <path id="tower-body" d="M427.6 354.1h10.6v81.2h-10.6z" class="st2"/>
    <path id="stripe-1" d="M427.6 368h10.6v8.8h-10.6z" class="st1"/>
    <path id="stripe-2" d="M427.6 385.5h10.6v8.3h-10.6z" class="st1"/>
    <path id="stripe-3" d="M427.6 404.4h10.6v8.8h-10.6z" class="st1"/>
    <path id="stripe-4" d="M427.6 422.1h10.6v10.6h-10.6z" class="st1"/>
    <path id="rails" d="M423.6 361.1h18v5.6h-18z" class="st2"/>
    <path id="window" d="M431.4 356.5h2v8.9h-2z" class="st3"/>
  </g>
  <g id="island">
    <path id="rock-face_1_" d="M686.3 584.8S360 353.8 359.3 476c-.3 58.6-2 325.6-3.2 326L313 786.1 305.8 903h380.4V584.8z" class="st4"/>
    <circle id="rock-top" cx="353.4" cy="786.1" r="40.5" class="st4"/>
    <circle id="rock" cx="293.1" cy="834.2" r="20.9" class="st4"/>
    <path id="base" d="M313 903h-40.8v-68.8H314z" class="st4"/>
    <path id="grass" d="M361.7 460.4c12.6-3.9 33.4-1.1 58.6 5.9-10.4 14.8-12.1 38.2 36.1 66.8C493.3 555 614 578.8 614 578.8s55.8 13.1 72.3 67.3V504.2c-307.4-133.3-324.6-43.8-324.6-43.8z" class="st0"/>
  </g>
  <g id="house">
    <path id="house-front" d="M432.8 421.1h30.5v12.2h-30.5z" class="st2"/>
    <path id="house-side" d="M472.6 412.2l4.7 8.9v14.2s-11.5-2-14-2 0-12.2 0-12.2l9.3-8.9z" class="st2"/>
    <path id="roof" d="M472.6 412.2h-33.9l-5.9 8.9h32.9z" class="st4"/>
    <path id="door" d="M454.5 427.2h3.9v6.1h-3.9z" class="st4"/>
  </g>
  <path id="cloudshadow-2" d="M437.5 508h-34c-9.7 0-17.5-7.8-17.5-17.5s7.8-17.5 17.5-17.5h34c9.7 0 17.5 7.8 17.5 17.5s-7.8 17.5-17.5 17.5z" class="st6"/>
  <g id="cloudshadow-3">
    <path d="M340.5 461h-191c-10.2 0-18.5-8.3-18.5-18.5s8.3-18.5 18.5-18.5h191c10.2 0 18.5 8.3 18.5 18.5s-8.3 18.5-18.5 18.5z" class="st6"/>
    <path d="M280 461H141.3c-20 0-36.3-16.2-36.3-36.3V390h104c39.2 0 71 31.8 71 71z" class="st6"/>
  </g>
  <path id="sky-masked" d="M0 0v874.5h272.2v-40.3c0-11.5 9.4-20.9 20.9-20.9 7.4 0 13.9 3.8 17.6 9.6L313 786c0-22.4 18.1-40.5 40.5-40.5 1.3 0 2.5.1 3.7.2.9-81.7 1.9-228.3 2.1-269.8 0-6 .9-11.2 2.4-15.5 0 0 5.5-28.6 65.9-29.4v-64.3h-3.9v-5.6h3.9v-6.9h.2c.6-4 2.7-7 5.1-7s4.4 2.9 5.1 7h.2v6.9h3.6v5.6h-3.6v46.4l.5-.8h33.9l4.7 8.9v14.2s-11.5-2-14-2c48.1 6.2 118.9 25.8 222.9 70.9V0H0z" class="st5"/>
  <path id="cloud1" d="M219.5 223h-126c-10.2 0-18.5-8.3-18.5-18.5S83.3 186 93.5 186h126c10.2 0 18.5 8.3 18.5 18.5s-8.3 18.5-18.5 18.5z" class="st2"/>
  <path id="cloud2" d="M437.5 148h-34c-9.7 0-17.5-7.8-17.5-17.5s7.8-17.5 17.5-17.5h34c9.7 0 17.5 7.8 17.5 17.5s-7.8 17.5-17.5 17.5z" class="st2"/>
  <g id="cloud3">
    <path d="M340.5 101h-191c-10.2 0-18.5-8.3-18.5-18.5S139.3 64 149.5 64h191c10.2 0 18.5 8.3 18.5 18.5s-8.3 18.5-18.5 18.5z" class="st2"/>
    <path d="M280 101H141.3c-20 0-36.3-16.2-36.3-36.3V30h104c39.2 0 71 31.8 71 71z" class="st2"/>
  </g>
  <path id="sea2" d="M0 903h686v103H0z" class="st0"/>
  <path id="wave1" d="M0 903h686v103H0z" class="st0"/>
  <path id="wave2" d="M0 903h686v103H0z" class="st0"/>
</svg>
</div>
            
          
!
            
              .frame {
    width: 449px;
    height: 69vh;

    margin-left: 35%;
  margin-top: -1%;
}

.svg {
    position: absolute;
    height: 99vh;
    
}
#cloudshadow-2, #cloudshadow-3, #cloudshadow-2 {
    mix-blend-mode: screen;
}
#cloudshadow-1 {
    position: absolute;
    top: -100px;
}
#wave1 {
    opacity: 0.5;
}
#wave2 {
    opacity: 0.9;
}
            
          
!
            
              
TweenMax.to("#cloud1", 15, {x:250, y:5, ease:Power1.ease });
TweenMax.to("#cloud2", 10, {x:130, y:5, ease:Power1.ease });
TweenMax.to("#cloud3", 15, {x:150, y:5, ease:Power1.ease });
TweenMax.to("#cloudshadow-1", 15, {x:250, y:5, ease:Power1.ease });
TweenMax.to("#cloudshadow-2", 10, {x:130, y:5, ease:Power1.ease });
TweenMax.to("#cloudshadow-3", 15, {x:150, y:5, ease:Power1.ease });

TweenMax.to("#sea2", 2, {repeat:15, yoyo:true, y: -20, ease:Power1.ease });
TweenMax.to("#wave2", 3, {repeat:15, yoyo:true, y: -20, ease:Power1.ease });
TweenMax.to("#wave1", 4, {repeat:15, yoyo:true, y: -20, ease:Power1.ease });
    
    

            
          
!
999px
Loading ..................

Console