<script type="text/javascript" src="https://uploads-ssl.webflow.com/5bd5c16e2e7dec4be42b608e/5f3a97d4e7bab8eb72c0a36d_fontsampler.txt"></script>
    <script type="text/javascript" src="https://uploads-ssl.webflow.com/5bd5c16e2e7dec4be42b608e/5f3a97d4e5ef2bfdd10683dc_fontsampler-skin.min.txt"></script>

<div id="tester"></div>

<script>
var options = {

    // This sets the UI element’s order and groupings
    order: ["tester", ["fontsize", "letterspacing"]],
	  initialText: "Type your text here",
    // This defines UI element options that differ from the defaults
    ui: {
        fontsize: {
            init: 4,
            step: 0.2,
            max: 6,
            min: 0.5,
            unit: "rem",
        },
      
        // Instead of defining the specifics of a ui element,
        // simply setting in to true will make it
        // get rendered in the UI with defaults
       
    }
    
}


var fonts = [
    { 
        name: "Placeholder",
        files:
      ["https://cdn.jsdelivr.net/npm/rntp-fnt-fls-test/WorkSans-Bold.woff",
        ]
        
    },
    
]
 var fs = new Fontsampler(document.getElementById("tester"), fonts, options)
// Initiate the skin by passing the Fontsampler instance to it
FontsamplerSkin(fs)

// Only then init the Fontsampler
fs.init()
</script>
@charset "UTF-8";
.fsjs-skin {
  transition: opacity 0.2s ease-out;
  opacity: 0;
  /* The bare minimum styling applied to all demo Fontsamplers */
  /**
   * A customized and trimmed down version of the rangeSlider.js SCSS
   */
  
}
.fsjs-skin.fsjs-initialized {
  opacity: 1;
  display: block;
}
.fsjs-skin .fsjs-block-tester {
  transition: opacity 0.2s ease-out;
  opacity: 1;
}
.fsjs-skin.fsjs-loading .fsjs-block-tester, .fsjs-skin.fsjs-timeout .fsjs-block-tester {
  opacity: 0;
}
.fsjs-skin > .fsjs-wrapper {
  display: flex;
  justify-content: space-between;
  font-family: sans-serif;
  padding-bottom: 10px;
}
.fsjs-skin .fsjs-block-tester {
  display: block;
}
.fsjs-skin .fsjs-block,
.fsjs-skin [data-axis-block] {
  box-sizing: border-box;
  padding: 0 5px;
  position: relative;
  margin: 0px;
  width: 100%;
}
.fsjs-skin [data-axis-block] {
  margin-bottom: 10px;
}
.fsjs-skin .fsjs-label {
  line-height: 1.6em;
}
.fsjs-skin .fsjs-block-type-slider .fsjs-label,
.fsjs-skin .fsjs-block-type-slidergroup .fsjs-label {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}
.fsjs-skin .fsjs-block-type-slider .fsjs-label span:first-child,
.fsjs-skin .fsjs-block-type-slidergroup .fsjs-label span:first-child {
  margin-right: auto;
}
.fsjs-skin .fsjs-block-type-slider .fsjs-label .fsjs-label-unit:before,
.fsjs-skin .fsjs-block-type-slidergroup .fsjs-label .fsjs-label-unit:before {
  content: " ";
}
.fsjs-skin .fsjs-block-opentype .fsjs-label {
  display: block;
  justify-content: flex-start;
}
.fsjs-skin [contenteditable] {
  outline: none;
}
.fsjs-skin .fsjs-button, .fsjs-skin .fsjs-block-type-buttongroup button {
  background: #FDFDFD;
  border: 1px solid #b3b3b3;
  border-radius: 0px;
  color: inherit;
  cursor: pointer;
  flex-grow: 1;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  line-height: 2em;
  padding: 0.1em 0.5em 0;
}

.fsjs-skin select[data-dkcacheid] {
  display: none;
}
.fsjs-skin .rangeSlider {
  margin: 0.5em auto;
}
.fsjs-skin .rangeSlider,
.fsjs-skin .rangeSlider__fill {
  display: block;
  border-radius: 2px;
}
.fsjs-skin .rangeSlider {
  position: relative;
  background: #b3b3b3;
}
.fsjs-skin .rangeSlider__horizontal {
  height: 1px;
  width: 100%;
}
.fsjs-skin .rangeSlider--disabled {
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
  opacity: 0.4;
}
.fsjs-skin .rangeSlider__fill {
  background: #b3b3b3;
  position: absolute;
}
.fsjs-skin .rangeSlider__fill__horizontal {
  height: 100%;
  top: 0;
  left: 0;
}
.fsjs-skin .rangeSlider__handle {
  cursor: pointer;
  display: inline-block;
  width: 10px;
  height: 10px;
  position: absolute;
  background: #000;
  border-radius: 0%;
  left: 0;
}
.fsjs-skin .rangeSlider__handle__horizontal {
  top: -5px;
}
.fsjs-skin .rangeSlider__handle:after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  margin: auto;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 0%);
  background: transparent;
  border-radius: 50%;
}
.fsjs-skin .fsjs-disabled .fsjs-label {
  color: #DDD;
}
.fsjs-skin .fsjs-disabled .rangeSlider {
  pointer-events: none;
  background-color: #DDD;
}
.fsjs-skin .fsjs-disabled .rangeSlider .rangeSlider__handle,
.fsjs-skin .fsjs-disabled .rangeSlider .rangeSlider__fill {
  background-color: #DDD;
}
.fsjs-skin .fsjs-disabled .dk-select .dk-selected {
  color: #DDD;
}
.fsjs-skin [data-fsjs-block=variation] {
  display: none;
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.