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.


                <a class="Link" href="#">
  <span class="Link-title">Lorem ipsum dolor sit amet consectetur, adipisicing elit. Laudantium sequi est similique natus alias. Velit provident corrupti asperiores maxime saepe aliquam atque laboriosam. Id incidunt iusto ea, voluptates velit sed?</span>


body {
  height: 100%;

body {
  align-items: center;
  display: flex;
  justify-content: center;

a, a:focus, a:hover, a:active, a:visited {
  color: inherit;
  text-decoration: none;

.Link {
  filter: drop-shadow(0 1em 1em rgba(#000, .16));
  font-size: 1rem;
  max-width: 25em;
  padding: 2em 2.4em;
  position: relative;
  transform: translateZ(0);

.Link::after {
  background-color: #fff;
  border-radius: 3px;
  content: ' ';
  display: block;
  position: absolute;
  transform-origin: right;
  transition: transform 500ms;
  width: 100%; height: 100%;
  top: 0; left: 0;
  z-index: -1;

.Link::after {
  background-color: #444;
  transform: scaleX(0);
  transition-duration: 450ms;

.Link-title {
    linear-gradient(0deg, #ddd, #000),
    linear-gradient(0deg, #fff, #fff),
  background-size: 0 2px, 0 100%;
  background-position: 8px calc(1em + 8px), 0 0;
  background-repeat: no-repeat;
  box-decoration-break: clone;
  display: inline;
  font-size: 30px;
  font-weight: 300;
  padding: 6px 8px;
  margin-left: -8px;
  pointer-events: none;
  line-height: 1.75; 
  text-shadow: 1px 1px 0 #fff, -1px 1px 0 #fff;
  transition: background ease-out 500ms;

.Link:hover > .Link-title {
  background-size: calc(100% - 16px) 2px, 100% 100%;
  transition-duration: 200ms;

.Link:hover::before {
  transform: scaleX(0);
  transition-duration: 450ms;
  transition-timing-function: ease-in-out;

.Link:hover::after {
  transform:  scaleX(1);
  transition-duration: 700ms;
  transition-timing-function: ease-in-out;
  transform-origin: left;