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=Ubuntu:300,400,500,700,300italic,400italic,500italic,700italic' rel='stylesheet' type='text/css'>

<h1>Codepen style shaking save reminder</h1>
<h4>Edit the text in the text area</h4>
<div class="visedit">
<div class="visedit-header">
	<button class="save">Save</button>
	<h2>Enter Product Description</h2>
</div>
<textarea id="txt1" class="visedit-area">
The Ubuntu Font Family are a set of matching new libre/open fonts in development during 2010-2011. The development is being funded by Canonical Ltd on behalf the wider Free Software community and the Ubuntu project. The technical font design work and implementation is being undertaken by Dalton Maag.
	
Both the final font Truetype/OpenType files and the design files used to produce the font family are distributed under an open licence and you are expressly encouraged to experiment, modify, share and improve.

The new Ubuntu Font Family was started to enable the personality of Ubuntu to be seen and felt in every menu, button and dialog. The typeface is sans-serif, uses OpenType features and is manually hinted for clarity on desktop and mobile computing screens.

The scope of the Ubuntu Font Family includes all the languages used by the various Ubuntu users around the world in tune with Ubuntu's philosophy which states that every user should be able to use their software in the language of their choice. So the Ubuntu Font Family project will be extended to cover many more written languages.
</textarea>
</div>

<h4>On a side note: I could not get animation-delay: to work on line 70 of the CSS, any thoughts?<br /><br />I am including -prefix-free and have not overwritten it with shorthand. I am stumped.</h4>
              
            
!

CSS

              
                html,body{
	margin: 0px;
	padding: 0px;
	background: #EEEEEE;
}
h1{
	color: #2c3e50;
	font-family: 'Ubuntu', sans-serif;
	font-weight: 300;
	font-size: 32px;
	text-align: center;
	margin: 50px 0px 7px 0px;
}
h4{
	color: #2c3e50;
	font-family: 'Ubuntu', sans-serif;
	font-weight: 300;
	font-size: 16px;
	text-align: center;
	margin: 0px 0px 30px 0px;
}

.visedit{
	width: 640px;
  box-sizing: border-box;
	margin: 10px auto;
}

.visedit-header{
  width: 100%;
	height: 40px;
  box-sizing: border-box;
	padding-left: 10px;
	
	font-family: 'Ubuntu', sans-serif;
	font-weight: 300;
	font-size: 14px;
	line-height: 30px;
	
	background: #2c3e50;
	color: white;
}

h2{
	margin: 0px;
	padding: 0px;
	line-height: 40px;
	font-size: 18px;
	font-weight: 300;
}

.save{
	float: right;
	margin: 0px;
	border-radius: 0px;
	line-height: 40px;
	border: 0px;
	background: #2ecc71;
	color: white;
	font-family: 'Ubuntu', sans-serif;
	font-weight: 300;
	font-size: 14px;
	padding: 0px 20px;
}

.shake{
	animation-name: shake;
	animation-iteration-count: infinite; 
	animation-duration: 3s;
	animation-delay: 2s; /* This is not working cant figure it out. Thoughts in comments? */
}
.visedit-area{
	padding: 10px;
  box-sizing: border-box;
	margin: 0px 0px 70px 0px;
	
	width: 100%;
	max-width: 100%;
	min-height: 200px;
	
	font-family: 'Ubuntu', sans-serif;
	font-weight: 300;
	font-size: 14px;
	line-height: 20px;
	
	border: 1px solid #2c3e50;
	border-top: 0px;
}

@keyframes shake{
	0%{
		transform: translate(0px, 0px);
	}
	5%{
		transform: translate(5px, 0px);
	}
	10%{
		transform: translate(-5px, 0px);
	}
	15%{
		transform: translate(5px, 0px);
	}
	20%{
		transform: translate(-5px, 0px);
	}
	25%{
		transform: translate(5px, 0px);
	}
	30%{
		transform: translate(-5px, 0px);
	}
	35%{
		transform: translate(5px, 0px);
	}
	40%{
		transform: translate(-5px, 0px);
	}
	45%{
		transform: translate(5px, 0px);
	}
	50%{
		transform: translate(0px, 0px);
	}
	100%{
		transform: translate(0px, 0px);
	}
}
              
            
!

JS

              
                $("#txt1").keydown(function (){
	$(".save").addClass("shake");
});

$(".save").click(function(){
	$(".save").removeClass("shake");
})
              
            
!
999px

Console