Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

HTML

              
                <h1>What properties does my browser support?</h1>

<ul>
  <li class="offset-path">offset-path</li>
  <li class="offset-distance">offset-distance</li>
  <li class="offset-anchor">offset-anchor</li>
  <li class="offset-rotate">offset-rotate</li>
</ul>

<div class="instructions">
<p>Enable experimental web platform features by pasting the following address into chrome and choosing "enable"</p>
<p>chrome://flags/#enable-experimental-web-platform-features</p>
<div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Gochi+Hand');

body {
  background-color: #f3f3f3;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #232435;
  font-family: 'Gochi Hand', sans-serif;
  margin: 0;
  padding: 0;
}

h1 { 
  letter-spacing: 0.1rem;
  font-size: 1.5rem;
  text-align: center;
}

ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin: 0;
  padding: 0;
  width: 100%;
}

.instructions {
  text-align: center;
  max-width: 500px;
  font-size: 1.2rem;
  margin-top: 2rem;
}

p:nth-of-type(2) {
  color: #d42323;
}

li {
  position: relative;
  width: 15%;
  min-width: 100px;
  padding: 2rem 1rem 5.5rem;
  background-color: #fff;
  border-radius: 10px;
  text-align: center;
  margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.13), 0 4px 6px rgba(0,0,0,0.18);
}

li:after {
  content: '';
  position: absolute;
  background-image: url("data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='106.059px' height='106.059px' viewBox='0 0 106.059 106.059' style='enable-background:new 0 0 106.059 106.059;' xml:space='preserve'%3E%3Cg%3E%3Cpath fill='%23d44d4d' stroke='%23d44d4d' d='M90.546,15.518C69.858-5.172,36.199-5.172,15.515,15.513C-5.173,36.198-5.171,69.858,15.517,90.547 c20.682,20.684,54.341,20.684,75.027-0.004C111.23,69.858,111.229,36.2,90.546,15.518z M84.757,84.758 c-17.494,17.494-45.96,17.496-63.455,0.002c-17.498-17.497-17.496-45.966,0-63.46C38.796,3.807,67.261,3.805,84.759,21.302 C102.253,38.796,102.251,67.265,84.757,84.758z M77.017,74.001c0.658,1.521-0.042,3.286-1.562,3.943 c-1.521,0.66-3.286-0.042-3.944-1.562c-2.893-6.689-9.73-11.012-17.421-11.012c-7.868,0-14.747,4.319-17.522,11.004 c-0.479,1.154-1.596,1.851-2.771,1.851c-0.384,0-0.773-0.074-1.15-0.23c-1.53-0.636-2.255-2.392-1.62-3.921 c3.71-8.932,12.764-14.703,23.063-14.703C64.174,59.371,73.174,65.113,77.017,74.001z M33.24,38.671 c0-3.424,2.777-6.201,6.201-6.201c3.423,0,6.2,2.776,6.2,6.201c0,3.426-2.777,6.202-6.2,6.202 C36.017,44.873,33.24,42.097,33.24,38.671z M61.357,38.671c0-3.424,2.779-6.201,6.203-6.201c3.423,0,6.2,2.776,6.2,6.201 c0,3.426-2.776,6.202-6.2,6.202S61.357,42.097,61.357,38.671z'/%3E%3C/g%3E%3C/svg%3E%0A");
  width: 3rem;
  height: 3rem;
  background-size: contain;
  background-repeat: no-repeat;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
}

@supports (offset-path: path('')) {
  .offset-path:after {
    background-image: url("data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='106.059px' height='106.059px' viewBox='0 0 106.059 106.059' style='enable-background:new 0 0 106.059 106.059;' xml:space='preserve'%3E%3Cg%3E%3Cpath fill='%238FD44D' stroke='%238FD44D' d='M90.544,90.542c20.687-20.685,20.685-54.342,0.002-75.024C69.858-5.172,36.199-5.172,15.515,15.513 C-5.173,36.198-5.171,69.858,15.517,90.547C36.199,111.23,69.858,111.23,90.544,90.542z M21.302,21.3 C38.796,3.807,67.261,3.805,84.759,21.302c17.494,17.494,17.492,45.962-0.002,63.455c-17.494,17.494-45.96,17.496-63.455,0.002 C3.804,67.263,3.806,38.794,21.302,21.3z M58.857,41.671c0-4.798,3.903-8.701,8.703-8.701c4.797,0,8.7,3.902,8.7,8.701 c0,1.381-1.119,2.5-2.5,2.5s-2.5-1.119-2.5-2.5c0-2.041-1.66-3.701-3.7-3.701c-2.042,0-3.703,1.66-3.703,3.701 c0,1.381-1.119,2.5-2.5,2.5C59.976,44.171,58.857,43.051,58.857,41.671z M31.134,41.644c0-4.797,3.904-8.701,8.703-8.701 c4.797,0,8.701,3.903,8.701,8.701c0,1.381-1.119,2.5-2.5,2.5c-1.381,0-2.5-1.119-2.5-2.5c0-2.041-1.66-3.701-3.701-3.701 c-2.042,0-3.703,1.66-3.703,3.701c0,1.381-1.119,2.5-2.5,2.5S31.134,43.024,31.134,41.644z M30.025,63.994 c-0.636-1.529,0.089-3.285,1.62-3.921c0.376-0.155,0.766-0.229,1.15-0.229c1.176,0,2.292,0.695,2.771,1.85 c2.777,6.686,9.655,11.004,17.523,11.004c7.69,0,14.528-4.321,17.42-11.011c0.658-1.521,2.424-2.222,3.944-1.563 s2.22,2.424,1.562,3.944c-3.843,8.887-12.843,14.629-22.927,14.629C42.788,78.697,33.735,72.927,30.025,63.994z'/%3E%3C/g%3E%3C/svg%3E%0A");
  }
}

@supports (offset-distance: 1%) {
  .offset-distance:after {
    background-image: url("data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='106.059px' height='106.059px' viewBox='0 0 106.059 106.059' style='enable-background:new 0 0 106.059 106.059;' xml:space='preserve'%3E%3Cg%3E%3Cpath fill='%238FD44D' stroke='%238FD44D' d='M90.544,90.542c20.687-20.685,20.685-54.342,0.002-75.024C69.858-5.172,36.199-5.172,15.515,15.513 C-5.173,36.198-5.171,69.858,15.517,90.547C36.199,111.23,69.858,111.23,90.544,90.542z M21.302,21.3 C38.796,3.807,67.261,3.805,84.759,21.302c17.494,17.494,17.492,45.962-0.002,63.455c-17.494,17.494-45.96,17.496-63.455,0.002 C3.804,67.263,3.806,38.794,21.302,21.3z M58.857,41.671c0-4.798,3.903-8.701,8.703-8.701c4.797,0,8.7,3.902,8.7,8.701 c0,1.381-1.119,2.5-2.5,2.5s-2.5-1.119-2.5-2.5c0-2.041-1.66-3.701-3.7-3.701c-2.042,0-3.703,1.66-3.703,3.701 c0,1.381-1.119,2.5-2.5,2.5C59.976,44.171,58.857,43.051,58.857,41.671z M31.134,41.644c0-4.797,3.904-8.701,8.703-8.701 c4.797,0,8.701,3.903,8.701,8.701c0,1.381-1.119,2.5-2.5,2.5c-1.381,0-2.5-1.119-2.5-2.5c0-2.041-1.66-3.701-3.701-3.701 c-2.042,0-3.703,1.66-3.703,3.701c0,1.381-1.119,2.5-2.5,2.5S31.134,43.024,31.134,41.644z M30.025,63.994 c-0.636-1.529,0.089-3.285,1.62-3.921c0.376-0.155,0.766-0.229,1.15-0.229c1.176,0,2.292,0.695,2.771,1.85 c2.777,6.686,9.655,11.004,17.523,11.004c7.69,0,14.528-4.321,17.42-11.011c0.658-1.521,2.424-2.222,3.944-1.563 s2.22,2.424,1.562,3.944c-3.843,8.887-12.843,14.629-22.927,14.629C42.788,78.697,33.735,72.927,30.025,63.994z'/%3E%3C/g%3E%3C/svg%3E%0A");
  }
}

@supports (offset-anchor: 50% 50%) {
  .offset-anchor:after {
    background-image: url("data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='106.059px' height='106.059px' viewBox='0 0 106.059 106.059' style='enable-background:new 0 0 106.059 106.059;' xml:space='preserve'%3E%3Cg%3E%3Cpath fill='%238FD44D' stroke='%238FD44D' d='M90.544,90.542c20.687-20.685,20.685-54.342,0.002-75.024C69.858-5.172,36.199-5.172,15.515,15.513 C-5.173,36.198-5.171,69.858,15.517,90.547C36.199,111.23,69.858,111.23,90.544,90.542z M21.302,21.3 C38.796,3.807,67.261,3.805,84.759,21.302c17.494,17.494,17.492,45.962-0.002,63.455c-17.494,17.494-45.96,17.496-63.455,0.002 C3.804,67.263,3.806,38.794,21.302,21.3z M58.857,41.671c0-4.798,3.903-8.701,8.703-8.701c4.797,0,8.7,3.902,8.7,8.701 c0,1.381-1.119,2.5-2.5,2.5s-2.5-1.119-2.5-2.5c0-2.041-1.66-3.701-3.7-3.701c-2.042,0-3.703,1.66-3.703,3.701 c0,1.381-1.119,2.5-2.5,2.5C59.976,44.171,58.857,43.051,58.857,41.671z M31.134,41.644c0-4.797,3.904-8.701,8.703-8.701 c4.797,0,8.701,3.903,8.701,8.701c0,1.381-1.119,2.5-2.5,2.5c-1.381,0-2.5-1.119-2.5-2.5c0-2.041-1.66-3.701-3.701-3.701 c-2.042,0-3.703,1.66-3.703,3.701c0,1.381-1.119,2.5-2.5,2.5S31.134,43.024,31.134,41.644z M30.025,63.994 c-0.636-1.529,0.089-3.285,1.62-3.921c0.376-0.155,0.766-0.229,1.15-0.229c1.176,0,2.292,0.695,2.771,1.85 c2.777,6.686,9.655,11.004,17.523,11.004c7.69,0,14.528-4.321,17.42-11.011c0.658-1.521,2.424-2.222,3.944-1.563 s2.22,2.424,1.562,3.944c-3.843,8.887-12.843,14.629-22.927,14.629C42.788,78.697,33.735,72.927,30.025,63.994z'/%3E%3C/g%3E%3C/svg%3E%0A");
  }
  
  .instructions {
    visibility: hidden;
  }
}

@supports (offset-rotate:auto) {
  .offset-rotate:after {
    background-image: url("data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='106.059px' height='106.059px' viewBox='0 0 106.059 106.059' style='enable-background:new 0 0 106.059 106.059;' xml:space='preserve'%3E%3Cg%3E%3Cpath fill='%238FD44D' stroke='%238FD44D' d='M90.544,90.542c20.687-20.685,20.685-54.342,0.002-75.024C69.858-5.172,36.199-5.172,15.515,15.513 C-5.173,36.198-5.171,69.858,15.517,90.547C36.199,111.23,69.858,111.23,90.544,90.542z M21.302,21.3 C38.796,3.807,67.261,3.805,84.759,21.302c17.494,17.494,17.492,45.962-0.002,63.455c-17.494,17.494-45.96,17.496-63.455,0.002 C3.804,67.263,3.806,38.794,21.302,21.3z M58.857,41.671c0-4.798,3.903-8.701,8.703-8.701c4.797,0,8.7,3.902,8.7,8.701 c0,1.381-1.119,2.5-2.5,2.5s-2.5-1.119-2.5-2.5c0-2.041-1.66-3.701-3.7-3.701c-2.042,0-3.703,1.66-3.703,3.701 c0,1.381-1.119,2.5-2.5,2.5C59.976,44.171,58.857,43.051,58.857,41.671z M31.134,41.644c0-4.797,3.904-8.701,8.703-8.701 c4.797,0,8.701,3.903,8.701,8.701c0,1.381-1.119,2.5-2.5,2.5c-1.381,0-2.5-1.119-2.5-2.5c0-2.041-1.66-3.701-3.701-3.701 c-2.042,0-3.703,1.66-3.703,3.701c0,1.381-1.119,2.5-2.5,2.5S31.134,43.024,31.134,41.644z M30.025,63.994 c-0.636-1.529,0.089-3.285,1.62-3.921c0.376-0.155,0.766-0.229,1.15-0.229c1.176,0,2.292,0.695,2.771,1.85 c2.777,6.686,9.655,11.004,17.523,11.004c7.69,0,14.528-4.321,17.42-11.011c0.658-1.521,2.424-2.222,3.944-1.563 s2.22,2.424,1.562,3.944c-3.843,8.887-12.843,14.629-22.927,14.629C42.788,78.697,33.735,72.927,30.025,63.994z'/%3E%3C/g%3E%3C/svg%3E%0A");
  }
}


              
            
!

JS

              
                
              
            
!
999px

Console