JSFiddle - React, Tailwind, and code Playground

by Alex

HTML

<div>S</div>


<input id="logo-size" type="range" min="100" value="100" max="200">

CSS

div{
    width: 130px;
    height: 30px;
    text-align: center;
    display: block;
    margin: 0;
    overflow: hidden;
}

JavaScript

$('#logo-size').change(function () {                    
  var fontsize = $(this).val()/5 + "px";
  $('html').css("font-size", fontsize );
});