Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <link href="https://fonts.googleapis.com/css?family=Molle:400i" rel="stylesheet">
<div id="content">
  <h1>Merry Christmas !!</h1></div>
<div id="background1">
</div>  
<div id="background2">
</div> 
 
              
            
!

CSS

              
                html{
  height:100%;
  background-size:100% 100%;
  background-image: 
    linear-gradient(50deg, red 30%, transparent 0%),
    linear-gradient(150deg, white, gray 40%, DarkGreen 40%)
    ;
}
h1 {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	color: white;
	font : normal 200 52px/1 'Open Sans', sans-serif;
  font-family: 'Molle', cursive;
	text-align: center;
	white-space: nowrap;
}
#background1{
  background-image:url("data:image/svg+xml,<svg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'><path d='M 80.41 66.991 L 85.669 63.641 L 90.941 66.991 L 90.941 72.408 L 85.984 75.368 L 80.643 72.483 L 80.41 66.991 Z' style='fill: none; stroke: white; stroke-width: 4; stroke-linecap: round;'/><path d='M 219.547 266.713' style='fill: none; stroke: black;'/><g transform='matrix(1, 0, 0, 1, -122.723381, -204.176941)'><path d='M 208.399 267.438 L 208.399 227.137' style='fill: none; stroke: white; stroke-width: 4; stroke-linecap: round;'/><path d='M 202.494 232.018 L 208.214 236.404 L 214.507 232.209' style='fill: none; stroke: white; stroke-width: 4; stroke-linecap: round;'/><path d='M 196.773 239.645 L 208.214 247.463 L 220.99 239.645' style='fill: none; stroke: white; stroke-width: 4; stroke-linecap: round;'/></g><path d='M 190.481 243.84' style='fill: none; stroke: black;'/><g transform='matrix(-1.000001, 0, 0, -1.000001, 294.753723, 342.839111)'><path d='M 208.953 268.177 L 208.399 227.137' style='fill: none; stroke: white; stroke-width: 4; stroke-linecap: round;'/><path d='M 202.494 232.018 L 208.214 236.404 L 214.507 232.209' style='fill: none; stroke: white; stroke-width: 4; stroke-linecap: round;'/><path d='M 196.773 239.645 L 208.214 247.463 L 220.99 239.645' style='fill: none; stroke: white; stroke-width: 4; stroke-linecap: round;'/></g><g transform='matrix(1, 0, 0, 1, -122.723381, -204.176941)'><g transform='matrix(-0.440226, -0.897887, 0.897887, -0.440226, 54.850155, 581.916077)'><path d='M 208.836 267.791 L 208.399 227.137' style='fill: none; stroke: white; stroke-width: 4; stroke-linecap: round;'/><path d='M 202.494 232.018 L 208.214 236.404 L 214.507 232.209' style='fill: none; stroke: white; stroke-width: 4; stroke-linecap: round;'/><path d='M 196.773 239.645 L 208.214 247.463 L 220.99 239.645' style='fill: none; stroke: white; stroke-width: 4; stroke-linecap: round;'/></g><g transform='matrix(0.440226, 0.897888, -0.897888, 0.440226, 362.224518, -33.741871)'><path d='M 208.303 267.341 L 208.399 227.137' style='fill: none; stroke: white; stroke-width: 4; stroke-linecap: round;'/><path d='M 202.494 232.018 L 208.214 236.404 L 214.507 232.209' style='fill: none; stroke: white; stroke-width: 4; stroke-linecap: round;'/><path d='M 196.773 239.645 L 208.214 247.463 L 220.99 239.645' style='fill: none; stroke: white; stroke-width: 4; stroke-linecap: round;'/></g><g transform='matrix(0.469852, -0.882745, 0.882745, 0.469852, -131.356094, 329.900116)'><path d='M 209.119 267.702 L 208.399 227.137' style='fill: none; stroke: white; stroke-width: 4; stroke-linecap: round;'/><path d='M 202.494 232.018 L 208.214 236.404 L 214.507 232.209' style='fill: none; stroke: white; stroke-width: 4; stroke-linecap: round;'/><path d='M 196.773 239.645 L 208.214 247.463 L 220.99 239.645' style='fill: none; stroke: white; stroke-width: 4; stroke-linecap: round;'/></g><g transform='matrix(-0.469853, 0.882746, -0.882746, -0.469853, 547.67218, 218.390656)'><path d='M 208.582 267.413 L 208.399 227.137' style='fill: none; stroke: white; stroke-width: 4; stroke-linecap: round;'/><path d='M 202.494 232.018 L 208.214 236.404 L 214.507 232.209' style='fill: none; stroke: white; stroke-width: 4; stroke-linecap: round;'/><path d='M 196.773 239.645 L 208.214 247.463 L 220.99 239.645' style='fill: none; stroke: white; stroke-width: 4; stroke-linecap: round;'/></g></g></svg>");
  background-position:center center;
background-size: 80px 80px;
width:100%;
height:300%;
position:fixed;
top:-200%;
left:0;
right:0;
bottom:0;
animation:infinitescroll1 10s linear infinite;
z-index:-1;
}
#background2{
  background-color:transparent;
  background-image:url("data:image/svg+xml,<svg viewBox='0 -3 400 400' xmlns='http://www.w3.org/2000/svg'><path d='M 80.41 66.991 L 85.669 63.641 L 90.941 66.991 L 90.941 72.408 L 85.984 75.368 L 80.643 72.483 L 80.41 66.991 Z' style='fill: none; stroke: silver; stroke-width: 4; stroke-linecap: round;'/><path d='M 219.547 266.713' style='fill: none; stroke: black;'/><g transform='matrix(1, 0, 0, 1, -122.723381, -204.176941)'><path d='M 208.399 267.438 L 208.399 227.137' style='fill: none; stroke: silver; stroke-width: 4; stroke-linecap: round;'/><path d='M 202.494 232.018 L 208.214 236.404 L 214.507 232.209' style='fill: none; stroke: silver; stroke-width: 4; stroke-linecap: round;'/><path d='M 196.773 239.645 L 208.214 247.463 L 220.99 239.645' style='fill: none; stroke: silver; stroke-width: 4; stroke-linecap: round;'/></g><path d='M 190.481 243.84' style='fill: none; stroke: black;'/><g transform='matrix(-1.000001, 0, 0, -1.000001, 294.753723, 342.839111)'><path d='M 208.953 268.177 L 208.399 227.137' style='fill: none; stroke: silver; stroke-width: 4; stroke-linecap: round;'/><path d='M 202.494 232.018 L 208.214 236.404 L 214.507 232.209' style='fill: none; stroke: silver; stroke-width: 4; stroke-linecap: round;'/><path d='M 196.773 239.645 L 208.214 247.463 L 220.99 239.645' style='fill: none; stroke: silver; stroke-width: 4; stroke-linecap: round;'/></g><g transform='matrix(1, 0, 0, 1, -122.723381, -204.176941)'><g transform='matrix(-0.440226, -0.897887, 0.897887, -0.440226, 54.850155, 581.916077)'><path d='M 208.836 267.791 L 208.399 227.137' style='fill: none; stroke: silver; stroke-width: 4; stroke-linecap: round;'/><path d='M 202.494 232.018 L 208.214 236.404 L 214.507 232.209' style='fill: none; stroke: silver; stroke-width: 4; stroke-linecap: round;'/><path d='M 196.773 239.645 L 208.214 247.463 L 220.99 239.645' style='fill: none; stroke: silver; stroke-width: 4; stroke-linecap: round;'/></g><g transform='matrix(0.440226, 0.897888, -0.897888, 0.440226, 362.224518, -33.741871)'><path d='M 208.303 267.341 L 208.399 227.137' style='fill: none; stroke: silver; stroke-width: 4; stroke-linecap: round;'/><path d='M 202.494 232.018 L 208.214 236.404 L 214.507 232.209' style='fill: none; stroke: silver; stroke-width: 4; stroke-linecap: round;'/><path d='M 196.773 239.645 L 208.214 247.463 L 220.99 239.645' style='fill: none; stroke: silver; stroke-width: 4; stroke-linecap: round;'/></g><g transform='matrix(0.469852, -0.882745, 0.882745, 0.469852, -131.356094, 329.900116)'><path d='M 209.119 267.702 L 208.399 227.137' style='fill: none; stroke: silver; stroke-width: 4; stroke-linecap: round;'/><path d='M 202.494 232.018 L 208.214 236.404 L 214.507 232.209' style='fill: none; stroke: silver; stroke-width: 4; stroke-linecap: round;'/><path d='M 196.773 239.645 L 208.214 247.463 L 220.99 239.645' style='fill: none; stroke: silver; stroke-width: 4; stroke-linecap: round;'/></g><g transform='matrix(-0.469853, 0.882746, -0.882746, -0.469853, 547.67218, 218.390656)'><path d='M 208.582 267.413 L 208.399 227.137' style='fill: none; stroke: silver; stroke-width: 4; stroke-linecap: round;'/><path d='M 202.494 232.018 L 208.214 236.404 L 214.507 232.209' style='fill: none; stroke: silver; stroke-width: 4; stroke-linecap: round;'/><path d='M 196.773 239.645 L 208.214 247.463 L 220.99 239.645' style='fill: none; stroke: silver; stroke-width: 4; stroke-linecap: round;'/></g></g></svg>");
  background-position:center center;
  background-size: 40px 40px;
width:100%;
height:300%;
position:fixed;
top:-200%;
left:0;
right:0;
bottom:0;
animation:infinitescroll2 15s linear infinite;
z-index:-1;
}
@keyframes infinitescroll1 {
	0% {transform:translate3d(0, 0, 0);}
	100% {transform:translate3d(0px, 320px, 0);}
}
@keyframes infinitescroll2 {
	0% {transform:translate3d(0, 0, 0);}
	100% {transform:translate3d(0px, 320px, 0);}
}
              
            
!

JS

              
                
              
            
!
999px

Console