cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

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.

            
              
@font-face {
	font-family:'Decovar Regular24'; 
	src:url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/209981/Decovar-VF.ttf');
}

h1 {
	margin: 0;
	font-size: 20vw;
	font-family: "Decovar Regular24"; 
	color: white; 
	
	font-variation-settings: 'SSTR' 1000;
	animation: loadin 4s infinite linear forwards;
}

@keyframes loadin {
	0% {
		font-variation-settings: 'SSTR' 1000;
	}
	50% {
		font-variation-settings: 'SSTR' 0;
	}
}



//Positioning & Shadow
html {
	height: 100%;
}

body {
	background: rgba(#a0a0a0, 0.1);
	overflow: hidden;
	height: 100%;
}

h1 {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	text-align: center;
	transform: translateZ(0);
	backface-visibility: hidden;
	text-shadow: 
		-1px -1px 0 rgba(255, 255, 255, .7),
		1px -1px 0 rgba(255, 255, 255, .7), 
		-1px 1px 0 rgba(255, 255, 255, .7), 
		1px 1px 0 rgba(255, 255, 255, .7), 
		-1px 2px 1px #a0a0a0,
		-2px 4px 2px #a0a0a0,
		-3px 6px 3px rgba(#a0a0a0, 0.6),
		-4px 8px 4px rgba(#a0a0a0, 0.5),
		-5px 10px 5px rgba(#a0a0a0, 0.4),
		-6px 12px 6px rgba(#a0a0a0, 0.3), 
		-7px 13px 7px rgba(#a0a0a0, 0.2),
		-8px 15px 8px rgba(#a0a0a0, 0.2), 
		-9px 17px 9px rgba(#a0a0a0, 0.2), 
		-10px 19px 10px rgba(#a0a0a0, 0.2), 
		-11px 20px 11px rgba(#a0a0a0, 0.1), 
		-12px 22px 12px rgba(#a0a0a0, 0.1), 
		-13px 24px 13px rgba(#a0a0a0, 0.1), 
		-14px 26px 14px rgba(#a0a0a0, 0.1), 
		-15px 28px 15px rgba(#a0a0a0, 0.1), 
		-16px 30px 16px rgba(#a0a0a0, 0.1), 
		-17px 32px 17px rgba(#a0a0a0, 0.1), 
		-18px 34px 18px rgba(#a0a0a0, 0.1), 
		-19px 36px 19px rgba(#a0a0a0, 0.1), 
		-20px 38px 20px rgba(#a0a0a0, 0.1), 
		-21px 39px 21px rgba(#a0a0a0, 0.1);
}
            
          
!
            
              var h1 = document.querySelector("h1");

h1.addEventListener("input", function() {
  this.setAttribute("data-heading", this.innerText);
});
            
          
!
999px
🕑 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.
Loading ..................

Console