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 is required to process package imports. If you need a different preprocessor remove all packages first.

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


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="hello">
    <h3>Front-end developer.</h3>


                @mixin center {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
//Completely customizable
$font-size: 40px;
$letter-spacing: 0.0625em; //This counts for 1px on 16px font;
$letter-count: 20; //Number of letters in text !important
$transition-time: 3s; //Typing speed
$bg-color: #eff5ed;
$mask-color: #eff5ed; //Change it to see how this works :)
$font-color: #152860;

$letter-size: calc(1ch + #{$letter-spacing});
$cursor-width: 1px; //Change this to $letter-size if you want Insert:active effect
$cursor-blink-duration: $letter-count;
$font-width: calc(#{$letter-count}ch + #{$letter-count}*#{$letter-spacing});

*, *:after, *:before {
	box-sizing: border-box;
	margin: 0;
	padding: 0;

body {
	background: #eff5ed;
	font-family: courier, serif; //Need monospace font for this to work
	text-align: center;
    -webkit-font-smoothing: antialiased;

.hello {
	@include center;
	top: 25%;

	h3 {
		position: relative;
	    color: $font-color;
	    text-align: center;
	    white-space: nowrap;
		font-size: $font-size;
		letter-spacing: $letter-spacing;
		width: $font-width;

	    &:after {
			display: block;
			position: absolute;
			content: '';
			width: $font-width;
			height: 2ex;
			left: 0;
			top: 0;
			background: $mask-color;
			animation: .6s blink $cursor-blink-duration, move $transition-time 1.5s forwards steps(1);
			border-left: $cursor-width solid $font-color;
			box-shadow: 0px 1ex 0px 0px $mask-color;

			@keyframes move {
				@for $i from 1 through $letter-count {
					$temp: 100/$letter-count;
					$percent: $i*$temp;
					#{$percent}% {
						width: calc(#{$font-width} - (#{$i}ch + #{$i}*#{$letter-spacing}));
						left: calc(#{$i}ch + #{$i}*#{$letter-spacing});

			@keyframes blink {
				0% {
			  		border-left-color: $font-color;
				50% {
			  		border-left-color: $font-color;
				51% {
			  		border-left-color: $mask-color;
				100% {
			  		border-left-color: $mask-color;


                //No thanks...