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.


                <h2><span>T</span>his is a <a href="#">multi-line spanning animated underline</a>. This took an <a href="#">annoyingly long time</a> to find. Hope it's useful.</h2>


@font-face {
  font-family: Circular;
  src: url('') format('woff2');
  font-weight: 400;
  font-style: normal;
body {
  background-color: #fafaf9;
  padding: 20vh 15vw;
  color: #000;
  //font-family: 'Circular', sans-serif;
	font-family: "Inter", sans-serif;
  font-size: 130%;

h2 {
	line-height: 1.5;
	animation: appear .5s ease-out;
	max-width: 660px;
	margin: 0 auto;
	font-weight: 600;
a {
	display: inline;
	text-decoration: none;
	color: inherit;
	background: linear-gradient(transparent 70%, #fddf66 70%, #fddf66 90%, transparent 90%, transparent 100%);
	background-repeat: no-repeat;
	background-size: 0% 100%;
	animation: animatedBackground 1s cubic-bezier(0.645, 0.045, 0.355, 1) .5s forwards;
	animation-delay: .75s;
	cursor: pointer;
	&:active {
		color: rgba(0,0,0,.5);
span {
	font-size: 150%;
	margin-right: -6px;
	// -6ps only works well for letters like T

@keyframes animatedBackground {
  to {
    background-size: 100% 100%;
@keyframes appear {
  0% {opacity: 0; transform: translateY(80px); line-height: 2;}
	50% {opacity: 0;}
	100% {opacity: 1; transform: translateY(0px); line-height: 1.5;}