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


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__SHDW">
<div class="text">
  <p>Rhododendron upsy daisy</p>
  <div id='demo-controls'>
    <div class="controls range-WGHT">
      <label for="controls__wght">Weight (300 - 800)</label>
      <input type="range" name="range-wght" value="400" id="text-vf-wght" class="controls--wght" min="300" max="800"> 
    <div class="controls range-ASCN">
      <label for="controls__ASCN">Ascenders (0 - 300)</label>
      <input type="range" name="range-ASCN" value="0" id="text-vf-ASCN" class="controls--ASCN" min="0" max="300"> 
    <div class="controls range-SHDW">
      <label for="controls__SHDW">Descenders (0 - 300)</label>
      <input type="range" name="range-DESC" value="0" id="text-vf-DESC" class="controls--DESC" min="0" max="300"> 



                @font-face {
  src: url('') format("woff2-variations");
  font-family: 'Rhododendron';
  font-weight: 300 800;
  font-display: swap;

/* using CSS vars to make sliders easier */
:root {
  /* Weight 300 - 800 */
  --text-vf-wght: 400;
  /* Ascender height 0 - 300 */
  --text-vf-ASCN: 0;
  /* Descender depth 0 - 300 */
  --text-vf-DESC: 0;

p {
  font-family: "Rhododendron";
  font-size: 6rem;
  font-weight: var(--text-vf-wght);
  line-height: 1.2;
  margin: 2rem auto;
  position: relative;
  text-align: center;
  font-variation-settings: "ASCN" var(--text-vf-ASCN), "DESC" var(--text-vf-DESC)

  /* Control buttons */
  .controls {
    display: grid;
    font-family: Arial, Helvetica, "Helvetica Neue", sans-serif;
    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-weight: 500;
      font-stretch: 100%;
      line-height: 1.5;



                // get the inputs
const inputs = []'.range__SHDW .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__SHDW').style.setProperty(`--${}`, this.value);