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 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.


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="overlay">
  <a href="#0" class="text">Hover!</a>


                body {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  background: url('') no-repeat center center;
  background-size: 100vw 100vh;

.overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: rgba(20,50,70,.9);
  mix-blend-mode: multiply;
  overflow: hidden;

a {
  position: relative;
  display: block;
  color: rgba(0,0,0,0);
  line-height: 0;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  font-size: 35vh;
  background: url('') no-repeat center center;
  background-size: 100vw 100vh;
  -webkit-background-clip: text;
  -webkit-text-stroke: 1px rgba(255,255,255,1);
  animation: out 1s;
  transition: font-size 2s, opacity 2s, -webkit-text-stroke 2s;

a:hover {
  line-height: 100%;
  animation: in 1s;

a:focus {
  line-height: 100%;
  font-size: 150vh;
  opacity: 0;
  -webkit-text-stroke: 1px rgba(255,255,255,0);
  animation: in 1s;

@keyframes in {
    0% {line-height: 0%;}
    100% {line-height: 100%;}

@keyframes out {
    0% {line-height: 100%;}
    100% {line-height: 0%;}


                /* Webkit Triple Stroke & Blendmode, no JS & SVG
v0.1 17.09.15, only working in webkit-browsers, tested in chrome 45.0 & Opera 29

A filling fullscreen link with stroke and blendmode; faux bold is giving it a triple stroke from a larger viewport upwards (not sure if bug or feature).
The missing blend-mode when the click animation is fired also seems like a chrome bug, opera gets it done correctly.
The filling effect is provided by the line-height setting, this is not working in Opera.