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

              
                
<div role="form" class="wpcf7" id="wpcf7-f1203-p230-o1" lang="en-US" dir="ltr">
	<div class="screen-reader-response"></div>
	<form action="" method="post" class="wpcf7-form" novalidate="novalidate">
		<div style="display: none;">
			<input type="hidden" name="_wpcf7" value="1203">
			<input type="hidden" name="_wpcf7_version" value="5.0.1">
			<input type="hidden" name="_wpcf7_locale" value="en_US">
			<input type="hidden" name="_wpcf7_unit_tag" value="wpcf7-f1203-p230-o1">
			<input type="hidden" name="_wpcf7_container_post" value="230">
		</div>
		<p><label for="form-your-name">Your Name (required)</label>
			<span class="wpcf7-form-control-wrap your-name"><input type="text" name="your-name" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required" id="form-your-name" aria-required="true" aria-invalid="false"></span></p>
		<p><label for="form-your-email">Your Email (required)</label>
			<span class="wpcf7-form-control-wrap your-email"><input type="email" name="your-email" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email" id="form-your-email" aria-required="true" aria-invalid="false"></span></p>
		<p><label for="form-your-subject">Subject</label>
			<span class="wpcf7-form-control-wrap your-subject"><input type="text" name="your-subject" value="" size="40" class="wpcf7-form-control wpcf7-text" id="form-your-subject" aria-invalid="false"></span></p>
		<p><label for="form-your-message">Your Message</label>
			<span class="wpcf7-form-control-wrap your-message"><textarea name="your-message" cols="40" rows="10" class="wpcf7-form-control wpcf7-textarea" id="form-your-message" aria-invalid="false"></textarea></span></p>
		<div class="wpcf7-form-control-wrap">
			<div data-sitekey="6Ld4Jh8TAAAAAD2tURa21kTFwMkKoyJCqaXb0uoK" class="wpcf7-form-control g-recaptcha wpcf7-recaptcha">
			</div>
		</div>
		<div class="wpcf7-response-output wpcf7-display-none"></div>
		<p><input type="submit" value="Send" class="wpcf7-form-control wpcf7-submit"><span class="ajax-loader"></span></p>
	</form>
</div>

<p><strong>Note:</strong> If you’re looking for support for Contact Form 7, please use <a href="http://contactform7.com/support/" target="_blank">appropriate support channels</a>.
</p>
              
            
!

CSS

              
                body {
	height: 100%;
	min-height: 100vh;
	width: 80%;
	max-width: 600px;
	margin: 0 auto;
	font-family: verdana, sans-serif;
	background:black;
	
}
h1 {
	background: rgba(0,0,0,.3);
	padding: 1em;
	margin-bottom: 1em;
	text-align: center;
	box-shadow: 0 0 1em rgba(0,0,0,.3);
}

/* CF 7 override */
form.wpcf7-form{
	background: rgba(255,255,255,1);
	padding: 1em;
	box-shadow: 0 0 1em rgba(0,0,0,.1);
	color: #2c569d;
	display: fixed;

}
form.wpcf7-form * {
	transition: 225ms;
}
form.wpcf7-form label {
	display: block;
	width: 100%;
	cursor: pointer;
}
form.wpcf7-form input,
form.wpcf7-form select,
form.wpcf7-form textarea {
	display: block;
	width: 100%;
	padding: .5em 0;
	margin-bottom: 1.5em;
	border: 0;
	border-bottom: 1px solid rgba(44,86,157,.5);
	background: transparent;
	font-size: 1.2em;
}
form.wpcf7-form input:hover,
form.wpcf7-form select:hover,
form.wpcf7-form textarea:hover {
	cursor: pointer;
	border-bottom: 2px solid rgba(44,86,157,1);
}
form.wpcf7-form input:focus,
form.wpcf7-form select:focus,
form.wpcf7-form textarea:focus {
	border-bottom: 1px solid #0099ff;
	box-shadow: inset 0 -2px 0 #333;
	outline: none;
}


form.wpcf7-form input,
form.wpcf7-form textarea{
	background: rgba(0,0,0,.03));
}

form.wpcf7-form input[type="submit"] {
	padding: 1em;
	margin-bottom: 0;
	text-transform: uppercase;
	font-size: 110%;
	border: 2px solid #fff;
	box-shadow: none;
	background: rgba(0,0,0,.1);
	color: #161922;
	line-height: 1.2em;
}
form.wpcf7-form input[type="submit"]:hover {
	background-color: rgba(255,255,255,.2);
	font-weight: 900;
}


span.wpcf7-not-valid-tip {
	position: relative;
	top: -1em;
	color: #e87676;
}
div.wpcf7-response-output {
	padding: 1em !important;
	margin: 0 !important;
}

div.wpcf7 .ajax-loader {
	display:none;
   background: none;
  -webkit-animation: spin 1s ease-in-out infinite;
  animation: spin 1s cubic-bezier(0.36, 0.09, 0.27, 0.97) infinite;
  border: 3px solid #dedede;
  border-top: 3px solid #000000;
  border-radius: 50%;
  height: 1em;
  width: 1em;
  margin: 0;
  vertical-align: middle;
}

@-webkit-keyframes spin {
  50% {
    border-top-color: #a7005d;
  }
  100% {
    border-top-color: #000000;
   -webkit-transform: rotate(360deg);
           transform: rotate(360deg);
  }
}

@keyframes spin {
  50% {
    border-top-color: #a7005d;
  }
  100% {
    border-top-color: #000000;
   -webkit-transform: rotate(360deg);
           transform: rotate(360deg);
  }
}


.wpcf7-form-control.g-recaptcha.wpcf7-recaptcha {
    opacity: .75;
}



              
            
!

JS

              
                /* simulate form submit */
$("form").on("submit", function(e) {
	e.preventDefault();
	$(".ajax-loader").css({ display: 'inline-block' });
	$.ajax({
		type: $(this).attr("method"),
		url: $(this).attr("action"),
		data: $(this).serialize(),
		success: function(data) {
			setTimeout(function(){
				if(!alert(data)){
					$(".ajax-loader").css({ display: 'none' });
				}
			},1000);
		}
	});
});

              
            
!
999px

Console