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="waves1"></div>
<div class="waves2"></div>
<div class="waves3"></div>

              
            
!

CSS

              
                body{background:silver;margin:0;overflow:hidden}

.waves1{
  position: absolute;
  width: 110%;
  height: 500px;
  z-index: 50;
  background-size: 100px 50px;
  background-image: 
  radial-gradient(circle at 50% 100%, MintCream 10%, SkyBlue 11%, SkyBlue 23%, MintCream 24%, MintCream 30%, PowderBlue 31%, PowderBlue 43%, MintCream 44%, MintCream 50%, PaleTurquoise 51%, PaleTurquoise 63%, MintCream 64%, MintCream 71%, transparent 71%, transparent);  
  
  animation: waves 3s ease-in-out infinite;
  -o-animation: waves 3s ease-in-out infinite;
  -moz-animation: waves 3s ease-in-out infinite;
  -webkit-animation: waves 3s ease-in-out infinite;
}

.waves2{
  position: absolute;
  width: 110%;
  height: 500px;
  z-index: 10;
  background-size: 100px 50px;
  background-image: 
  radial-gradient(circle at 100% 150%, PowderBlue 24%, MintCream 25%, MintCream 28%, LightCyan 29%, LightCyan 36%, MintCream 36%, MintCream 40%, transparent 40%, transparent),
  radial-gradient(circle at 0 150%, PowderBlue 24%, MintCream 25%, MintCream 28%, LightCyan 29%, LightCyan 36%, MintCream 36%, MintCream 40%, transparent 40%, transparent), 
  radial-gradient(circle at 100% 50%, MintCream 5%, MediumTurquoise 6%, MediumTurquoise 15%, MintCream 16%, MintCream 20%, PowderBlue 21%, PowderBlue 30%, MintCream 31%, MintCream 35%, LightCyan 36%, LightCyan 45%, MintCream 46%, MintCream 49%, transparent 50%, transparent),
  radial-gradient(circle at 0 50%, MintCream 5%, MediumTurquoise 6%, MediumTurquoise 15%, MintCream 16%, MintCream 20%, PowderBlue 21%, PowderBlue 30%, MintCream 31%, MintCream 35%, LightCyan 36%, LightCyan 45%, MintCream 46%, MintCream 49%, transparent 50%, transparent);  
  
  animation: waves2 3s linear infinite;
  -o-animation: waves2 3s linear infinite;
  -moz-animation: waves2 3s linear infinite;
  -webkit-animation: waves2 3s linear infinite;
}

.waves3{
  position: absolute;
  width: 110%;
  height: 500px;
  z-index: 100;
  background-size: 100px 50px;
  background-image: 
  radial-gradient(circle at 100% 150%, PowderBlue 24%, MintCream 25%, MintCream 28%, LightCyan 29%, LightCyan 36%, MintCream 36%, MintCream 40%, transparent 40%, transparent),
  radial-gradient(circle at 0 150%, PowderBlue 24%, MintCream 25%, MintCream 28%, LightCyan 29%, LightCyan 36%, MintCream 36%, MintCream 40%, transparent 40%, transparent);  
  
  animation: waves2 3s linear infinite;
  -o-animation: waves2 3s linear infinite;
  -moz-animation: waves2 3s linear infinite;
  -webkit-animation: waves2 3s linear infinite;
}

@keyframes waves {
  0%{left:4px;top:-1px}
  25%{left:0;top:-2px}
  50%{left:-4px;top:-1px}
  75%{left:0;top:0}
  100%{left:4px;top:-1px}
}
@-o-keyframes waves {
  0%{left:4px;top:-1px}
  25%{left:0;top:-2px}
  50%{left:-4px;top:-1px}
  75%{left:0;top:0}
  100%{left:4px;top:-1px}
}
@-moz-keyframes waves {
  0%{left:4px;top:-1px}
  25%{left:0;top:-2px}
  50%{left:-4px;top:-1px}
  75%{left:0;top:0}
  100%{left:4px;top:-1px}
}
@-webkit-keyframes waves {
  0%{left:4px;top:-1px}
  25%{left:0;top:-2px}
  50%{left:-4px;top:-1px}
  75%{left:0;top:0}
  100%{left:4px;top:-1px}
}

@keyframes waves2 {
  0%{left:-4px;top:1px}
  25%{left:0;top:2px}
  50%{left:4px;top:1px}
  75%{left:0;top:0}
  100%{left:-4px;top:1px}
}
@-o-keyframes waves2 {
  0%{left:-4px;top:1px}
  25%{left:0;top:2px}
  50%{left:4px;top:1px}
  75%{left:0;top:0}
  100%{left:-4px;top:1px}
}
@-moz-keyframes waves2 {
  0%{left:-4px;top:1px}
  25%{left:0;top:2px}
  50%{left:4px;top:1px}
  75%{left:0;top:0}
  100%{left:-4px;top:1px}
}
@-webkit-keyframes waves2 {
  0%{left:-4px;top:1px}
  25%{left:0;top:2px}
  50%{left:4px;top:1px}
  75%{left:0;top:0}
  100%{left:-4px;top:1px}
}
              
            
!

JS

              
                /* 

jaschagoltermann.de

Works on current mobile browsers. 
You'll only see plain MintCream on an outdated mobile browser though. 
That's fine, it's a nice color. 

Animated Version of my other pen: nouHx

*/
              
            
!
999px

Console