Pen Settings



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


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.


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.


                	<div class="typewriter">
		<h1 id="text">"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."</h1>



                	@import url(;
@import url(',400');
		margin: 0;
		background: #3AAFA9;
  color: white;box-shadow: inset -53px -41px 198px #379E99, inset 95px -2px 200px #379e99;
display:flex;align-items:center;height:100vh;justify-content: center;
	.typewriter {
		font-family: 'Anonymous Pro', monospace;
		width: 70%;  
	h1 {
	  overflow: hidden;
	  margin: 0 auto;
	  display: inline-block;
	      font-weight: normal;

	 content: '';
	  display: inline-block;
	  background-color: white;
	  margin-left: 2px;
	  height: 25px;
    width: 4px;
		animation: cursor 0.4s infinite;

	/* The typewriter cursor effect */
	@keyframes cursor {
		0% { opacity: 1; }
		  49% { opacity: 1; }
		  50% { opacity: 0; }
		  100% { opacity: 0; }



                		var i = 0;
// var A = 0;
		var tag = document.getElementById("text");
		var html = document.getElementById("text").innerHTML;
		var attr = tag.setAttribute("data", html);
		var txt = tag.getAttribute("data");
		var speed = 170;

		function typeWriter() {
		  if (i <= txt.length) {
		    document.getElementById("text").innerHTML = txt.slice(0 , i + 1);
		    setTimeout(typeWriter, speed);


// function deltxt() {
// 			if (A <= txt.length) {
		// 	    document.getElementById("text").innerHTML = txt.slice(0, -A);
		// 	    A++;
		// 	    setTimeout(deltxt, 50);
		// 	  }
		// }
		// var backward = speed * txt.length + 1000		;
		// // console.log(backward);
		// setTimeout( function () {
		// 	deltxt();
		// },backward);