velocitymodel
PD controlled velocity model with optional animation extension
Demo here
Install the module:
npm i -S velocitymodel
Example usage:
;; const indicator = document;const updater = { indicatorstyleleft = value; // or however you want to use the value};const P = 100; // Propotional partconst D = 10; // Velocity partconst model = P D;const animator = model updater; animator;