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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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="wrapper">
  <div class="container">
    <img src="https://i.imgur.com/Ro18ILc.png" />
  </div>
  <div class="container-2">
    <a href="https://imgur.com/Ro18ILc"><img src="https://i.imgur.com/Ro18ILc.png"></a>
  </div>
  <div class="container3">
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <svg width="250px" height="98px" viewBox="0 0 319 98" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">

        <defs></defs>
        <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
          <g id="Tablet-Portrait" sketch:type="MSArtboardGroup" transform="translate(-202.000000, -172.000000)">
            <g id="Oval-1-+-Triangle-1-+-Oval-2" sketch:type="MSLayerGroup" transform="translate(202.000000, 172.000000)">
              <ellipse id="Oval-1" fill="#D8D8D8" sketch:type="MSShapeGroup" cx="174.5" cy="52" rx="144.5" ry="43"></ellipse>
              <polygon id="Triangle-1" fill="#D8D8D8" sketch:type="MSShapeGroup" transform="translate(30.000000, 51.500000) scale(-1, -1) rotate(-84.000000) translate(-30.000000, -51.500000) " points="30 27 79 76 -19 76 "></polygon>
              <circle id="Oval-2" stroke="#979797" fill="#9F99A1" sketch:type="MSShapeGroup" cx="262" cy="45" r="7"></circle>
            </g>
          </g>
        </g>
      </svg>
  </div>
  <div class="bubble"></div>
  <div class="bubbles"></div>
  <div class="bubbles"></div>
</div>
<div>
  <div class="oval"></div>
  <div class="tail"></div>
</div>
              
            
!

CSS

              
                html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  font: normal 15px/1.5 'Open Sans', sans-serif;
  background: #212144;
}

.wrapper {
  width: 800px;
  height: 350px;
  background: #3D6FAA;
  padding: 50px;
  border-top: 10px solid #C3DBE2;
  border-bottom: 80px solid #2B3D69;
  border-radius: 70%;
  border-top-right-radius: 0;
  border-top-left-radius: 0; 
  position: relative;
}

img {
  width: 100px;
}

@keyframes swim {
 from {
    left: 0;
    top: 0;
  }
  to {
    top: 0;
    left: 700px;
  }
}
@-webkit-keyframes swim{
  from {
    left: 0;
    top: 0;
  }
  to {
    top: 0;
    left: 700px;
  }
}

.container {
  animation: swim 10s infinite;
  -webkit-animation: swim 10s infinite;
  position: absolute;
  opacity:0.5; 
}

@keyframes swim2 {
  from{ transform: rotate(0deg);}
  to{ transform: rotate(180deg); opacity: 0;}
}
@-webkit-keyframes swim2 {
  from{  -webkit-transform: rotate(0deg);}
  to{
    -webkit-transform: rotate(180deg);
     opacity: 0;
  }
}
@keyframes swim3 {
  from{
    transform: rotate(0deg);
  }
  to{
    transform: rotate(-180deg);
  }
}
@-webkit-keyframes swim3 {
  from{
     -webkit-transform: rotate(0deg);
  }
  to{
    -webkit-transform: rotate(-180deg);

  }
}
.container-2 img{
  animation: 11s swim2 infinite;
  transform: rotate(90deg);
  -webkit-animation: 11s swim2 infinite;
  -webkit-transform: rotate(90deg);

}
.container-2 {
  position: relative;
  margin: 50px;
  animation: 11s swim3 infinite;
  -webkit-animation: 11s swim3 infinite;

}

@keyframes glide {
  from {
    right: 0;
    top: 0;
  }
  to {
    top: 0;
    right: 600px;
    transform: rotate(14deg); 
    opacity: 0;
  }
}

@-webkit-keyframes glide {
  from {
    right: 0;
    top: 0;
  }
  to {
    top: 0;
    right: 600px;
    -webkit-transform: rotate(14deg); 
    opacity: 0;
  }
}

.container3 svg{
  transform:rotate(180deg);
  -webkit-transform:rotate(180deg);
}
.container3 {
  margin-top: 200px;
  position: absolute;
  animation: glide 9s infinite;
  -webkit-animation: glide 9s infinite;
}

@keyframes float {
  from {
    bottom: 130px;
    left: 0;
  }
  to {
    bottom: 500px;
    left: 0;
    background: yellow;
    opacity: 0;
  }
}

@-webkit-keyframes float {
  from {
    bottom: 130px;
    left: 0;
  }
  to {
    bottom: 500px;
    left: 0;
    background: yellow;
    opacity: 0;
  }
}

@keyframes float2 {
  from {
    bottom: 130px;
    left: 60px;
  }
  to {
    bottom: 500px;
    left: 0;
    background: green;
    opacity: 0;
  }
}

@-webkit-keyframes float2 {
  from {
    bottom: 130px;
    left: 60px;
  }
  to {
    bottom: 500px;
    left: 0;
    background: green;
    opacity: 0;
  }
}

.bubbles {
  width: 20px;
  height: 20px;
  background: lightblue;
  border-radius: 50%;
  margin: 26px;
  animation: float 8s infinite;
  -webkit-animation: float 8s infinite;
  position: absolute;
}

.bubble {
  width: 20px;
  height: 20px;
  background: lightblue;
  border-radius: 50%;
  margin: 26px;
  position: absolute;
  right: 20px;
  animation: float2 10s infinite;
  -webkit-animation: float2 10s infinite;
}
              
            
!

JS

              
                
              
            
!
999px

Console