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.


                <h1 data-text="Hello" contenteditable>Hello</h1>



html {
  background-color: #f9c9e9;
  padding: 0;
  overflow: hidden;

@function makeShadow($color) {
  $val: 0px 0px $color;
  @for $i from 1 through 320 {
    $val: #{$val}, -#{$i}px #{$i}px #{$color};
  @return $val;

@mixin shadow($color) {
  text-shadow: makeShadow($color);

@mixin interpolate($properties, $min-screen, $max-screen, $min-value, $max-value) {
	& {
		@each $property in $properties {
			#{$property}: $min-value;

		@media screen and (min-width: $min-screen) {
			@each $property in $properties {
				#{$property}: calc-interpolation($min-screen, $min-value, $max-screen, $max-value); 

		@media screen and (min-width: $max-screen) {
			@each $property in $properties {
				#{$property}: $max-value;

// Requires the calc-interpolation function which can also be used independently
@function calc-interpolation($min-screen, $min-value, $max-screen, $max-value) {
	$a: ($max-value - $min-value) / ($max-screen - $min-screen);
	$b: $min-value - $a * $min-screen; 

	$sign: "+";
	@if ($b < 0) {
		$sign: "-";
		$b: abs($b);
	@return calc(#{$a*100}vw #{$sign} #{$b});

h1 {
	font-family: 'CoreCircus', arial;
	@include interpolate(font-size, 320px, 700px, 56px, 125px);

	color: darken(#f9c9e9, 20);
	text-transform: uppercase;
	font-weight: 700;
	z-index: 1;
	width: 100%;
	height: 346px;
	max-width: 700px;
	text-align: center;
	position: absolute;
	bottom: 0%;
	left: 0%;
	overflow: hidden;
	&::after {
		@include shadow(darken(#f9c9e9, 10));
		content: attr(data-text);
		position: absolute;
		top: 0;
		left: 0;
		z-index: -1;
		width: 100%;
		height: 100%;

		animation: swoosh 1s infinite linear;
		mask-position: -30px 0px;
		mask-image: repeating-linear-gradient(
		  rgba(0, 0, 0, 0),
		  rgba(0, 0, 0, 0) 10px,
		  rgba(0, 0, 0, 1) 10px,
		  rgba(0, 0, 0, 1) 20px
		will-change: mask-position;
		transform: translateZ(0);

@keyframes swoosh {
	0% {
		mask-position: -30px 0px;

	100% {
		mask-position: -1px 0px;

 * Webfont: CoreCircus by S-Core
 * URL:
 * Copyright: Copyright (c) 2013 by S-Core Co., Ltd.. All rights reserved.
 * Licensed pageviews: 10,000

@font-face {
	font-family: 'CoreCircus';
	src: url('');
	src: url('') format('embedded-opentype'), url('') format('woff2'), url('') format('woff'), url('') format('truetype');



                // JS is to make the text editable, not required for the effect. 
var h1 = document.querySelector("h1");

h1.addEventListener("input", function() {
    this.setAttribute("data-text", this.innerText);