cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <h2 id="test">Type what you like directly into the HTML. Move your cursor left and right over the text. Weird science! I hope you enjoy.</h2>
<a href="https://github.com/geekholm/Bookish-Variable">Follow the development on Github</a>

            
          
!
            
              @font-face { 
   font-family: 'Bookish'; 
   src: url('https://rawgit.com/geekholm/Bookish-Variable/master/BookishProtoGX.ttf') format('truetype'); 
   font-weight: normal; 
   font-style: normal; 
 } 

body{
  font-family:'Bookish';
  font-variation-settings: "wght" 400;
  font-size:24px;
  line-height:1.4em;
  margin:0 2em;

	font-feature-settings: "kern" on;
  -moz-font-feature-settings: "kern" on;
  -webkit-font-feature-settings: "kern" on;
  -ms-font-feature-settings: "kern" on;
  -o-font-feature-settings: "kern" on;
}

.content{
  max-width:50rem;
}

h1,h2{
  font-size:4rem;
  font-weight: normal;
  line-height:1em;
}

            
          
!
            
              //thanx to Eero Pitkänen for making this work in the browser

document.onmousemove = function(e){
	document.getElementById('test').style.cssText = 
		'font-variation-settings: "wght" '+ e.clientX;
};
            
          
!
999px
Loading ..................

Console