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="range__opsz">
  <div class="text">
    <h1 id="heading">Franky Spring <br />
      Collectible Soups</h1>

  <div id='demo-controls'>
    <div class="controls range-ital">
      <label for="controls__ital">Italic forms (0 - 1)</label>
      <input type="range" name="range-ital" value="0" id="text-vf-ital" class="controls--opsz" min="0" max="1"> 
    <div class="controls range-slnt">
      <label for="controls__slnt">Slant (0 - 8)</label>
      <input type="range" name="range-slnt" value="0" id="text-vf-slnt" class="controls--slnt" min="-8" max="0"> 



                /* Amstelvar Variable Font */
@font-face {
  font-family: 'Roslindale Italic VF';
  src: url('') format('woff2-variations');
  font-display: swap;

/* using CSS vars to make sliders easier */
:root {
  /* Italic range is from 0 to 1 */
  --text-vf-ital: 0;
  /* Slant rage is from 0 to 8
   but when using font-variation-settings
   it might be a negative number */
  --text-vf-slnt: 0;

h1 {
	font-family: "Roslindale Italic VF", sans-serif;
    'ital' var(--text-vf-ital), 
    'slnt' var(--text-vf-slnt);  
  font-size: 4em;
  line-height: 1.15;
  margin: 1em auto;
  max-width: 42rem;
	transition: all linear 0.2s; 	

  /* Control buttons */
  .controls {
    display: grid;
    margin-top: 2em;
    text-align: center;
    width: 20em;
    margin-left: auto;
    margin-right: auto;

    h3 {
      display: inline;
      font-weight: normal;
      font-family: monospace;
    input {
      padding: 0.25em 0;
    label {
      font-family: Arial, sans-serif;
      font-weight: 500;
      font-stretch: 100%;
      line-height: 1.5;



                // get the inputs
const inputs = []'.range__opsz .controls input'));

// listen for changes
inputs.forEach(input => input.addEventListener('change', handleUpdate));
inputs.forEach(input => input.addEventListener('mousemove', handleUpdate));

function handleUpdate(e) {      document.querySelector('.range__opsz').style.setProperty(`--${}`, this.value);