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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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 or require. We'll also process your JavaScript with Babel.

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

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.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="display">
	  <svg class="backdrop" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1199.64 674.06"><defs><style>.cls-1{fill:#96a5aa;}.cls-2{fill:#476372;}.cls-3{fill:#032236;}</style></defs><title>water-backdrop-fixed</title><g id="layered-background" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path class="cls-1" d="M0,134.56c374.82-42.69,410.69-96,619-119.43,221-24.9,417.89-14.83,580,0V673.56H0Z"/><path class="cls-2" d="M0,175.56c207.51,44.16,377.37,68.68,496,83,126.49,15.27,210-1.9,349,42,76,24,284,69.93,354.5,68,.5,88-.5,305-.5,305H0Z"/><path class="cls-3" d="M0,512.56c140.92-45,322.74-82.13,534.73-70.55,49.4,2.7,70.47,3.47,113.77,8.05,123,13,355-141,551-128v352H.5Q.25,593.32,0,512.56Z"/></g></g></svg>
	</div>

	<div class="bubble bubble-1">
	  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105.73 105.73"><defs><style>.bubble{fill:#c2e5f9;}</style></defs><title>Bubble</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><circle cx="52.86" cy="52.86" r="52.86"/></g></g></svg></div>

	<div class="bubble bubble-2">
	  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105.73 105.73"><defs><style>.bubble{fill:#c2e5f9;}</style></defs><title>Bubble</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><circle cx="52.86" cy="52.86" r="52.86"/></g></g></svg></div>

	<div class="bubble bubble-3">
	  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105.73 105.73"><defs><style>.bubble{fill:#c2e5f9;}</style></defs><title>Bubble</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><circle cx="52.86" cy="52.86" r="52.86"/></g></g></svg></div>

	<div class="bubble bubble-4">
	  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105.73 105.73"><defs><style>.bubble{fill:#c2e5f9;}</style></defs><title>Bubble</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><circle cx="52.86" cy="52.86" r="52.86"/></g></g></svg></div>

	<div class="whale-wrapper">
	  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000.74 700.41" class="whale"><defs><style>.whale-cls-1{fill:#63a3bc;}.whale-cls-2{fill:#333;}.whale-cls-3{fill:#f9f9f9;}.whale-cls-4{fill:#f5f5f5;}.whale-cls-5{fill:none;stroke:#333;stroke-miterlimit:10;}</style></defs><title>whale_v1.1</title><g id="whale-layer" data-name="Layer 2"><g id="whale-Layer_1-2" data-name="whale-Layer 1"><path class="whale-cls-1" d="M281.21,317.75c-19.15,9.14-75.23,39-99.18,102.41a168.19,168.19,0,0,0-10.31,46.9,97.37,97.37,0,0,0,2.34,32.18c2.81,11.21,5.59,13.11,8.41,27.07a116.93,116.93,0,0,0,4.64,16.91c3.64,10.2,5.87,11.72,7.51,12.44,5.3,2.29,11.58-1.14,13.9-3.63,3.76-4,5.12-3.62,11.65-13.92s11.61-19.53,27.19-29.68,33.92-27.51,42.12-44.54,14.65-42.38,14.65-42.38l5.5-28.73"/><path class="whale-cls-1" d="M637,405.1a475.52,475.52,0,0,1-80.84,42.15c-151.27,62.15-331.86,46.9-331.86,46.9S-10.21,474.22.35,242,241.91.47,241.91.47c41.82-1.56,72.7-.78,145.8,27.75S494,139.62,516.7,176.37s75,62.54,98.11,67.23c2.24.45,4.62.84,7.12,1.15C666.87,247.21,689.87,378.21,637,405.1Z"/><circle class="whale-cls-2" cx="55.77" cy="230.58" r="26.4"/><ellipse class="whale-cls-3" cx="46.42" cy="219.92" rx="4.67" ry="8"/><circle class="whale-cls-2" cx="173.77" cy="230.58" r="26.4"/><ellipse class="whale-cls-3" cx="164.42" cy="219.92" rx="4.67" ry="8"/><path class="whale-cls-4" d="M25.92,371.84c-19.33-33.21-14.62-43.95-13.06-45.3,2.42-2.1,2.49-3.45,12.25.84s8.82,6.48,26.25,15.08S73.85,354,97.07,358.79c30.63,6.29,55.54,1.5,70.29-1.44a204.25,204.25,0,0,0,59-20.54c19.49-10.47,22.48-15.94,32.34-15.75,19,.38,18,17.46,49.66,46.56s34,27.74,80.5,59.06c16.86,11.36,86.9,32.08,84.87,43.73-.53,3.07-5.83,4.52-7.87,5.06C300,519.13,189.37,488.21,189.37,488.21c-64.72-18.09-95.25-40-108-50C81.37,438.21,50.4,413.9,25.92,371.84Z"/><path class="whale-cls-1" d="M363.86,402.9c5,20.61,22.85,81.61,80,118a168.32,168.32,0,0,0,43.81,19.67,97.2,97.2,0,0,0,32,4.28c11.54-.46,14-2.79,28.21-2.7a116.94,116.94,0,0,0,17.5-1.09c10.73-1.48,12.68-3.35,13.71-4.82,3.33-4.71,1.25-11.56-.71-14.34-3.16-4.5-2.5-5.75-11.25-14.25s-16.75-15.36-23.5-32.68-20-38.82-35-50.32-38.5-23-38.5-23l-27-11.25"/><path class="whale-cls-5" d="M79.87,354.71a73.7,73.7,0,0,1,4.78,6.07c32.79,52.35,71.91,97.58,126.22,130.93"/><path class="whale-cls-5" d="M156.87,359.71q46,80.49,132,139"/><path class="whale-cls-5" d="M218.87,341.71c36.51,64.13,80.78,117.25,138,152l.31.31"/><path class="whale-cls-1 tail" d="M637,405.1c82.42-54.2,102.09-110.3,102.09-110.3,10.23-28,13.12-51.28,13.75-67.9,1.12-29.35-4.5-45.54,6.5-56.5,9.64-9.6,19-2.23,45.15-9.56a123.61,123.61,0,0,0,55.38-33.72c4.76-5.09,20.17-25.5,25.57-43.54,2.22-7.4,2.79-13.3,3.75-18.62.73-5.13,4.84-9.82,5.42-14.36s-.88-10.11-11.14-11-18.12,3.37-25.5,4-23.08-.55-39.72-.88C793.35,42.2,738,64,726.21,103.27c-4.13,13.73-21.1-39.09-59.8-42.21s-69.19,17.19-69.19,17.19S576.9,91.54,561.65,91.54s-13.09,18.13-6.79,23.7S572.3,126.68,577.43,132,603.67,157,613.2,160.54s22.87,9.38,45.59,9.38,34.44,8.79,37.81,12.75,15.93,24.18-2.05,43.73c-16.24,17.65-49.37,21.27-72.62,18.35C503.24,220.6,589.87,444.21,637,405.1Z"/></g></g></svg>
    
<div class="sea-turtle-wrapper">
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.94 411.78" class="sea-turtle">
      <defs>
        
        <style>.turtle-cls-1{fill:#bcd182}.turtle-cls-1,.turtle-cls-2,.turtle-cls-3,.turtle-cls-4{stroke:#333;stroke-miterlimit:10;stroke-width:10px}.turtle-cls-2{fill:#45763c}.turtle-cls-3{fill:none}.turtle-cls-4{fill:#96af90}.turtle-cls-5{fill:url(#radial-gradient)}.turtle-cls-6{fill:#f9f9f9}</style>
        
        <radialGradient id="radial-gradient" cx="348.84" cy="351.29" r="38.29" gradientTransform="matrix(.76 0 0 1 -35.23 -180.46)" gradientUnits="userSpaceOnUse"><stop offset=".39" stop-color="#424242"/><stop offset="1" stop-color="#141414"/></radialGradient>
          
       </defs>
      
      <title>SeaTurtleRegularFace</title>
      
      <g id="Body">
        
        <path class="turtle-cls-1" d="M607 486.4s60.64 42.19 149.14 13.69 111-42 132-64.5 37.5-10.5 88.5-100.49c13.5-15 37.5-15 34.5-27s-25.5 1.5-36-9-76.32-108.1-410.92-43.54C505.6 273.59 457.81 450.21 607 486.4z" transform="translate(-238 -180.46)"/>
        
        <path class="turtle-cls-2" d="M566.34 351s71.72 63.59 181.59 66.59 199.26-60 237.73-123c6.42-13.5-43.93-73.5-127.86-90s-151.07-45-299.09 31.5c-39.71 25.5-24.95 92.16 7.63 114.91z" transform="translate(-238 -180.46)"/>
        
        <path class="turtle-cls-3" d="M613.17 339.5L645 285l-21.77-49.68-64.52.77M643.19 200.39l-20 34.93M709.82 186.59L743.27 215l8.73 47.54L717 303l-72-18M734.88 398.85L717 303M843 381.5l-22.91-88.65L752 262.54" transform="translate(-238 -180.46)"/>
        
        <path class="turtle-cls-4" d="M618.76 373.66v11s75.74 37.18 144.24 33 129.08-29.55 159.53-55.88 44.87-37.12 62.92-67.21c3-7.09-5.57-17.59-5.57-17.59a274 274 0 0 1-95.38 88.5c-65.07 36.05-127.14 35.2-154.5 33a278.06 278.06 0 0 1-112.36-34.09" transform="translate(-238 -180.46)"/>
        
        <path class="turtle-cls-3" d="M743.27 215l26.38-26.22M805.5 193.77l30.28 23 13.22 41.9-31.09 32.83M849.52 202.92l-13.73 13.82L849 258.67 896.5 286l34.67-13.71-7.25-44.29M923.75 337.5L896.5 286" transform="translate(-238 -180.46)"/>
        
        <path class="turtle-cls-3" d="M726.57 125.35l-32.83-31.54"/>
        
      </g>
      
      <path class="turtle-cls-1" d="M880.58 428.09s19.5 33 93 30 99-52.5 99-52.5 12-28.5-18-42-28.5 13.5-97.5-18" transform="translate(-238 -180.46)" id="Back_Flipper" data-name="Back Flipper"/>
      
      <g id="Head">
        
        <path class="turtle-cls-1" d="M616.64 486.59c-71.12 52.68-126.26 60.84-165.75 56.36-57.48-6.53-137.21-46.6-137.21-46.6a31.44 31.44 0 0 1 9.88-6.5c7.89-3.22 35.13 1.08 35.13 1.08C369 492.57 384.24 489.17 406 467c-15.26 14.88-29.32 20.52-39.64 22.84-23.58 5.3-36.53-7.35-52.69 5.42-16.47 13-25.25 15.17-35.13 6.5-41.88-36.76-36.26-88.15-33.91-132.22 0 0 9.88-183 205.81-160.29 22.59 2.62 77.24 9.24 122.86 52.73 62.88 59.94 59.06 143.43 58.25 157" transform="translate(-238 -180.46)"/>
        
        <g id="Eye"><ellipse class="turtle-cls-5" cx="229" cy="170.83" rx="29" ry="38.29"/><ellipse class="turtle-cls-6" cx="218.73" cy="155.37" rx="5.13" ry="11.6"/></g>
          
      </g>
      
      <path class="turtle-cls-1" d="M655.59 467.08s-16.5 76.5 88.5 114c0 0 49.5 18 105-7.5s33-12 55.5-25.5 22.5-24 7.5-40.5-58.5-66-117-72" transform="translate(-238 -180.46)" id="Front_Flipper" data-name="Front Flipper"/>
      
      </svg>
  </div>
</div>

            
          
!
            
              body {
  margin: 0;
  padding: 0;
  background-color: #e7f4fb;
  position: relative;
}

.display {
  height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  display: -webkit-flex;
  align-items: flex-end;
  -webkit-align-items: flex-end;
}

.backdrop {
  height: 70vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

#layered-background {
  position: absolute;
  bottom: 0;
  max-height: 500px;
}

@keyframes bubbleLeftUp {
  0% {
    transform: translate(0px, 0px);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  20% {
    transform: translate(-15px, -200px);
  }
  40% {
    transform: translate(0px, -400px);
  }
  60% {
    transform: translate(15px, -600px);
  }
  80% {
    transform: translate(0px, -800px);
    bottom: 150%;
    opacity: 1;
  }
  81%, 100% {
    opacity: 0;
  }
}

@keyframes bubbleRightUp {
  0% {
    transform: translate(0px, 0px);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  20% {
    transform: translate(15px, -200px);
  }
  40% {
    transform: translate(0px, -400px);
  }
  60% {
    transform: translate(-15px, -600px);
  }
  80% {
    transform: translate(0px, -800px);
    bottom: 150%;
    opacity: 1;
  }
  81%, 100% {
    opacity: 0;
  }
}

.bubble {
  animation-duration: 15s;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  position: fixed;
  z-index: 1;
  bottom: -100px;
}

.bubble-1 {
  height: 100px;
  width: 100px;
  left: 80%;
  animation-name: bubbleLeftUp;
}

.bubble-2 {
  height: 50px;
  width: 50px;
  left: 78%;
  animation-name: bubbleRightUp;
  animation-delay: 400ms;
}

.bubble-3 {
  height: 100px;
  width: 100px;
  left: 10%;
  animation-name: bubbleRightUp;
  animation-delay: 3s;
}

.bubble-4 {
  height: 50px;
  width: 50px;
  left: 12%;
  animation-name: bubbleLeftUp;
  animation-delay: 3400ms;
}

@keyframes swimForward {
  0% {
    right: -50%;
  }
  100% {
    right: 150%;
  }
}

@keyframes tailWave {
  0% {
    transform: rotate(15deg);
  }
  20% {
    transform: rotate(10deg);
  }
  40% {
    transform: rotate(5deg);
  }
  60% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(15deg);
  }
}

.whale-wrapper {
  position: fixed;
  top: 20%;
  right: 0;
  height: 500px;
  width: 100%;
}

.whale {
  position: absolute;
  width: 400px;
  animation-name: swimForward;
  animation-duration: 20s;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
}

.whale-cls-1.tail {
  transform-origin: 60% 50%;
  animation-name: tailWave;
  animation-duration: 3s;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
}

.sea-turtle-wrapper {
  max-width: 400px;
  margin-left: auto;
  display: none;
}

.sea-turtle {
  min-width: 200px;
  overflow: visible;
}

#Front_Flipper {
  position: relative;
  z-index: 1;
}

@keyframes flipperStroke {
  20% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(5px);
  }
}
            
          
!
999px

Console