animating css var with js

Linear

Bezier