STIMED.js
Source Code

Comments:

Random values using custom range. Default range is 40-100 and default unit is set to px. This was created for testing font-size but it also can be used on other single value CSS properties.

Here we setup random font-size to use vw values in unit parameter. Increase fps in settings to make transitions more smoother.

Initialize Plugin:

var stimed = new $.stimed({
  timeTarget: '.time',
  fps: 30,
  precise: true,
  speedUp: 800
});

Preset Source:

stimed.style.preset({
  preset: 'random values',
  target: '.time',
  delay: 86400/12,        
  min: 10,
  max: 20,
  unit: 'vw'
});
Close

Made with and

Author STIMED.js