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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              h1 Good

              $color1: #EB4A2C;
$color2: #F5ECCF;
$color3: #640E13;
$color4: #FCB043;
$cubic-bezier: cubic-bezier(0.68, -0.55, 0.265, 1.55);

//initial text-shadow function
@function textShadow($color){
	//value variable: x-value, y-value, color value;
	$val: 0px 0px $color;
	//loop to create text-shadow variables moving 1px to the left and 1 down
	@for $i from 1 through 50{
		$val: #{$val}, -#{$i}px #{$i}px #{$color};
	//return value
	@return $val;

@function textAnimationShadow($color1, $color2,$color3,$color4,$color5){
	$val1: 0px 0px $color1;
	$val2: 0px 0px $color2;
	$val3: 0px 0px $color3;
	$val4: 0px 0px $color4;
	$val5: 0px 0px $color5;
	@for $i from 1 through 10{
		$val1: #{$val1}, -#{$i}px #{$i}px #{$color1};
	@for $i from 11 through 20{
		$val2: #{$val2}, -#{$i}px #{$i}px #{$color2};
	@for $i from 21 through 30{
		$val3: #{$val3}, -#{$i}px #{$i}px #{$color3};
	@for $i from 31 through 40{
		$val4: #{$val4}, -#{$i}px #{$i}px #{$color4};
	@for $i from 41 through 50{
		$val5: #{$val5}, -#{$i}px #{$i}px #{$color5};
	@return $val1, $val2, $val3, $val4, $val5;

//mixin to create initial text-shadow
@mixin shadow($shadow-color){
	text-shadow: textShadow($shadow-color);
//mixin to create animation shadow, can enter 5 color variables
@mixin animationShadow($shadow-color1, $shadow-color2,$shadow-color3, $shadow-color4, $shadow-color5){
	text-shadow: textAnimationShadow($shadow-color1, $shadow-color2,$shadow-color3, $shadow-color4, $shadow-color5);

	height: 100%;

	background: $color4;
	display: flex;
	align-items: center;
	align-content: center;
	justify-content: center;

	font-family: 'Shrikhand', cursive;
	text-align: center;
	font-weight: normal;
	font-size: 7rem;
	color: $color2;
	@include shadow($color1);
	animation: color 2s ease-in infinite;

@keyframes color{
		color: $color1;
		@include shadow($color3);
		color: $color1;
		@include animationShadow($color3,$color3,$color3,$color3,$color1);
	21%, 30%{
		color: $color1;
		@include animationShadow($color3,$color3,$color3,$color1,$color1);
	31%, 40%{
		color: $color1;
		@include animationShadow($color3,$color3,$color1,$color1,$color1);
	41%, 50%{
		color: $color1;
		@include animationShadow($color3,$color1,$color1,$color1,$color1);
		color: $color2;
		@include animationShadow($color1,$color1,$color1,$color1,$color1);
		color: $color2;
		@include animationShadow($color1,$color1,$color1,$color1,$color1);
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.