Pen Settings



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


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


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.


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.


                <!DOCTYPE html>
	<meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>Animate | Tobest Academy</title>
	<link rel="stylesheet" type="text/css" href="style2.css">

	<div class="main">
		<h1>This is the title of this div</h1>
		<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
		tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
		quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
		consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
		cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
		proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
	<script src="script2.js"></script>


	margin: 0;
	padding: 0;
	box-sizing: border-box;

	font-family: sans-serif;
	display: flex;
	justify-content: center;
	align-content: center;

	height: 380px;
	width: 400px;
	box-shadow: 0 0 20px 1px rgba(0,0,0,0.19), 0 0 30px 1px rgba(0,0,0,0.23);
	border-radius: 5px;
	padding: 20px;

	First set the opacity to 0 
	and other cool stuffs you 
	want to add
	opacity: 0;
	transform: translateY(100px);
	transition: 1s all ease-in-out;
	Then once this new class is 
	added it changes the opacity 
	back to 1 or whatever you set
	opacity: 1;
	transform: translateY(0px);

.main h1{
	font-size: 20px;
	text-transform: uppercase;
.main p{
	margin-top: 30px;
	line-height: 26px;


                function mainAppear(){
	var mainText = document.querySelector('.main');