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 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

              
                <!DOCTYPE html>
<html>
<head>
	<title>CSS3 Paper Wind Mill</title>
</head>
<body>
<div style="position: absolute; width: 100%; height: 110px; margin-top: 10px;">
	<div class="cloud scale_8" style="top: 50px; left: -5%;"></div>
	<div class="cloud" style="top: 20px; left: 25%;"></div>
	<div class="cloud scale_4" style="top: 5px; left: 55%;"></div>
	<div class="cloud scale_8" style="top: 40px; right: 15%;"></div>
</div>

<div class="wind-mill fly scale_4" style="bottom: -50px; left: 3%; -webkit-animation-direction: reverse;">
	<div class="petal-wrap spin">	
		<div class="petal blue"></div>
		<div class="petal yellow"></div>
		<div class="petal orange"></div>
		<div class="petal green"></div>		
	</div>
	<div class="stand"></div>
</div>

<div class="wind-mill fly scale_8" style="bottom: -150px; right: 13%;">
	<div class="petal-wrap spin">	
		<div class="petal blue"></div>
		<div class="petal yellow"></div>
		<div class="petal orange"></div>
		<div class="petal green"></div>		
	</div>
	<div class="stand"></div>
</div>

<div class="wind-mill fly scale_8" style="bottom: -60px; right: 33%;">
	<div class="petal-wrap spin">	
		<div class="petal blue"></div>
		<div class="petal yellow"></div>
		<div class="petal orange"></div>
		<div class="petal green"></div>		
	</div>
	<div class="stand"></div>
</div>

<div class="wind-mill fly scale_4" style="bottom: -110px; right: -90px;">
	<div class="petal-wrap spin">	
		<div class="petal blue"></div>
		<div class="petal yellow"></div>
		<div class="petal orange"></div>
		<div class="petal green"></div>		
	</div>
	<div class="stand"></div>
</div>

<div class="balloon-outer-wrap one">
	<div class="balloon-wrap scale_8">
		<div class="balloon"></div>
		<div class="balloon-carrier"></div>
		<div class="balloon-thread"></div>
	</div>
</div>

<div class="balloon-outer-wrap">
	<div class="balloon-wrap scale_4">
		<div class="balloon"></div>
		<div class="balloon-carrier"></div>
		<div class="balloon-thread"></div>
	</div>
</div>
<div class="mountain" style="left: 238px;"></div>
<div class="mountain scale_4" style="right: 15px; border-width: 195px 0px 435px 95px;"></div>
</body>
</html>
              
            
!

CSS

              
                html {
		    height: 100%;
		}
		body{
			height: 100%;
		    margin: 0;
		    background-repeat: no-repeat;
		    background-attachment: fixed;
			overflow: hidden;
			background-image: -moz-linear-gradient(top, rgba(102,182,252,0.5) 0%, rgba(255,255,255,1) 100%);
			background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(102,182,252,0.5)), color-stop(100%,rgba(255,255,255,1)));
			background-image: -webkit-linear-gradient(top, rgba(102,182,252,0.5) 0%,rgba(255,255,255,1) 100%);
			background-image: -o-linear-gradient(top, rgba(102,182,252,0.5) 0%,rgba(255,255,255,1) 100%);
			background-image: -ms-linear-gradient(top, rgba(102,182,252,0.5) 0%,rgba(255,255,255,1) 100%);
			background-image: linear-gradient(to bottom, rgba(102,182,252,0.5) 0%,rgba(255,255,255,1) 100%);
		}

		/* Paper Wind Mill */
		.wind-mill{
			position: absolute;
			overflow: hidden;
			width: 327px;
			height: 560px;
		}
		.petal-wrap{
			width: 327px;
			height: 327px;
			position: absolute;
			top: 0;
			left: 0;
			right: 0;
			margin: auto;
			overflow: hidden;
		}
		.petal{
			position: absolute;
			width: 5em;
			height:10.2em;
			position: absolute;
			top: 10.2em;
			left: 10.2em;
			display: inline-block;			
			overflow: hidden;	
			-webkit-transform-origin: 0 0;	
			-moz-transform-origin: 0 0;	
			-ms-transform-origin: 0 0;	
			transform-origin: 0 0;	
		}
		.petal:before{
			content: '';
			position: absolute;
			width: 0;
			height: 0;
			border-width: 2.5em;
			border-style: solid;
			z-index: 1;
			-webkit-transfrom: rotateZ(0deg) skew(45deg);
			-moz-transfrom: rotateZ(0deg) skew(45deg);
			-ms-transfrom: rotateZ(0deg) skew(45deg);
			transfrom: rotateZ(0deg) skew(45deg);
		}
		.petal:after{
			content: '';
			position: absolute;
			top: 1.2em;
			left: -3.8em;
			width: 0;
			height: 0;
			border-width: 3.8em;
			border-style: solid;			
			border-top-right-radius: 0.8em;
			z-index: -1;
			box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);			
			-webkit-transform: rotate(45deg);
			-moz-transform: rotate(45deg);
			-ms-transform: rotate(45deg);
			transform: rotate(45deg);
		}
		.orange:before{ border-color: #E94E1B #E94E1B transparent transparent; }
		.orange:after{ border-color: #FFED00 #FFED00 transparent transparent; }
		.blue{ 
			-webkit-transform: rotate(90deg);
			-moz-transform: rotate(90deg);
			-ms-transform: rotate(90deg);
			transform: rotate(90deg);
		}		
		.blue:before{ border-color: #2DAAE1 #2DAAE1 transparent transparent; }
		.blue:after{ border-color: #A1DAF7 #A1DAF7 transparent transparent; }
		.green{ 
			-webkit-transform: rotate(180deg);
			-moz-transform: rotate(180deg);
			-ms-transform: rotate(180deg);
			transform: rotate(180deg);
		}
		.green:before{ border-color: #2FAC66 #2FAC66 transparent transparent; }
		.green:after{ border-color: #96C11F #96C11F transparent transparent; }
		.yellow{ 
			-webkit-transform: rotate(270deg);
			-moz-transform: rotate(270deg);
			-ms-transform: rotate(270deg);
			transform: rotate(270deg);
		}
		.yellow:before{ border-color: #E50046 #E50046 transparent transparent; }
		.yellow:after{ border-color: #F0869D #F0869D transparent transparent; }
		.stand{
			position: absolute;
			top: 240px;
			left: 0;
			right: 0;
			margin: 0 auto;
			z-index: -5;
			width: 10px;
			height: 320px;
			background-size: 50px 50px;
			background-color: #c16;
			background-image: -webkit-linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%,
			                  transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%,
			                  transparent 75%, transparent);
			background-image: -moz-linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%,
			                  transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%,
			                  transparent 75%, transparent);
			background-image: linear-gradient(135deg, rgba(255, 255, 255, .2) 25%, transparent 25%,
			                  transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%,
			                  transparent 75%, transparent);			
		}
		/*-- Paper Wind Mill --*/

		/* Balloon */
		.balloon-outer-wrap {
			-webkit-animation: balloon-motion 5s linear infinite alternate-reverse;
			-moz-animation: balloon-motion 5s linear infinite alternate-reverse;
			-ms-animation: balloon-motion 5s linear infinite alternate-reverse;
			animation: balloon-motion 5s linear infinite alternate-reverse;
		}
		.balloon-outer-wrap.one {
			-webkit-animation-delay: 0.8s;
		}
		.balloon{
			position: absolute;
			border-radius: 30em 30em 30em 0em;
			border-width: 100px 100px 100px 100px;
			border-style: solid;
			border-color: transparent;
			background-color: #EE417F;

			-webkit-transform: rotate(-45deg);	
			-moz-transform: rotate(-45deg);	
			-ms-transform: rotate(-45deg);	
			transform: rotate(-45deg);

		}
		.balloon-carrier{
			position: absolute;
			top: 290px;
			left: 72px;
			width: 3.5em;
			height: 5em;
			background-color: #2884B8;
		}
		.balloon-carrier:before, .balloon-carrier:after{
			content: '';
			top: 0;			
			position: absolute;
			border-style: solid;
			border-width: 5em 2em 0em 2.5em;
			border-color: #2884B8 rgba(0, 0, 0, 0);
		}
		.balloon-carrier:before{
			left: -40px;
		}
		.balloon-carrier:after{
			right: -33px;
		}		
		.balloon-thread{
			position: absolute;
			top: 100px;
			left: -5px;
			width: 210px;
			height: 10px;
			background-color: #2884B8;
		}
		.balloon-thread:before, .balloon-thread:after{
			content: '';
			position: absolute;			
			height: 210px;
			width: 2px;
			background-color: #2884B8;			
		}
		 .balloon-thread:before, .balloon-thread:after{
		 	content: '';
		 }
		 .balloon-thread:before{
		 	top: -5px;
			left: 40px;
			-webkit-transform: rotate(-20deg);
			-moz-transform: rotate(-20deg);
			-ms-transform: rotate(-20deg);
			transform: rotate(-20deg);
		 }
		 .balloon-thread:after{
		 	top: -5px;
			right: 40px;
			-webkit-transform: rotate(20deg);
			-moz-transform: rotate(20deg);
			-ms-transform: rotate(20deg);
			transform: rotate(20deg);
		 }
		/*-- Balloon --*/

		@-webkit-keyframes flow{
			0% { background-color: #2DAAE1; }
			25% { background-color: #E94E1B; }
			50% { background-color: #2FAC66; }
			75% { background-color: #E50046; }
			100% { background-color: #2DAAE1; }
		}
		/* Rotate */
		@-webkit-keyframes rotate{
			0% { -webkit-transform: rotate(0deg); }
			100% { -webkit-transform: rotate(360deg); }							
		}
		@-moz-keyframes rotate{
			0% { -moz-transform: rotate(0deg); }
			100% { -moz-transform: rotate(360deg); }							
		}
		@-ms-keyframes rotate{
			0% { -ms-transform: rotate(0deg); }
			100% { -ms-transform: rotate(360deg); }							
		}
		@keyframes rotate{
			0% { transform: rotate(0deg); }
			100% { transform: rotate(360deg); }							
		}
		.spin{
			-webkit-animation: rotate 1.6s linear infinite;
			-moz-animation: rotate 1.6s linear infinite;
			-ms-animation: rotate 1.6s linear infinite;
			animation: rotate 1.6s linear infinite;
		}
		/*-- Rotate --*/
		/* Fly */
		@-webkit-keyframes fly{
			0%{
				-webkit-transfrom: translate(0, 0px) scale(0.4);
			}
			100%{
				-webkit-transfrom: translate(0, 500px) scale(0.4);	
			}
		}
		@-moz-keyframes fly{
			0%{
				-moz-transfrom: translate(0, 0px) scale(0.4);
			}
			100%{
				-moz-transfrom: translate(0, 500px) scale(0.4);	
			}
		}
		@-ms-keyframes fly{
			0%{
				-ms-transfrom: translate(0, 0px) scale(0.4);
			}
			100%{
				-ms-transfrom: translate(0, 500px) scale(0.4);	
			}
		}
		@keyframes fly{
			0%{
				transfrom: translate(0, 0px) scale(0.4);
			}
			100%{
				transfrom: translate(0, 500px) scale(0.4);	
			}
		}
		.fly{
			-webkit-animation: fly 1.6s linear infinite;
			-moz-animation: fly 1.6s linear infinite;
			-ms-animation: fly 1.6s linear infinite;
			animation: fly 1.6s linear infinite;	
		}
		/*-- Fly --*/
		
		
		.scale_8{
			-webkit-transform: scale(0.8);
			-moz-transform: scale(0.8);
			-ms-transform: scale(0.8);
			transform: scale(0.8);
		}
		.scale_4{
			-webkit-transform: scale(0.4);
			-moz-transform: scale(0.4);
			-ms-transform: scale(0.4);
			transform: scale(0.4);
		}
		/* Cloud */
		.cloud{
			background: #fff;
			width: 200px;
			height: 50px;
			border-radius: 9em;
			position: absolute;
			bottom: 0;
		}
		.cloud:before{
			content: '';
			position: absolute;
			background: #fff;
			top: -30px;
			width: 60px;
			height: 60px;
			border-radius: 50%;
			left: 30px;
		}
		.cloud:after{
			content: '';
			position: absolute;
			background: #fff;
			top: -60px;
			width: 100px;
			height: 100px;
			border-radius: 50%;
			right: 30px;
		}
		/*-- Cloud --*/

		/* Mountain */
		.mountain {
			position: absolute;
			border-radius: 0em 0 0 0;
			border-width: 255px 0px 435px 145px;
			border-style: solid;
			border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) #F3793F;			
			bottom: -273px;
			-webkit-transform: rotate(-90deg);
			-moz-transform: rotate(-90deg);
			-ms-transform: rotate(-90deg);
			transform: rotate(-90deg);
		}
		/*-- Mountain --*/

		@-webkit-keyframes balloon-motion {
			0% {
				-webkit-transform: translateY(10px);
			}
			50% {
				-webkit-transform: translateY(-10px);
			}
		}
		@-moz-keyframes balloon-motion {
			0% {
				-moz-transform: translateY(10px);
			}
			50% {
				-moz-transform: translateY(-10px);
			}
		}
		@-ms-keyframes balloon-motion {
			0% {
				-ms-transform: translateY(10px);
			}
			50% {
				-ms-transform: translateY(-10px);
			}
		}
		@keyframes balloon-motion {
			0% {
				transform: translateY(10px);
			}
			50% {
				transform: translateY(-10px);
			}
		}
              
            
!

JS

              
                
              
            
!
999px

Console