I found the problem. Posting the solution for people who’s had the same issue
instead of
function smoothEaseIn(startTime, endTime, startVal, endVal) {
var x = easeInQuint(time - startTime, 0, 100, transition);
return linear(x, startTime, endTime, startVal, endVal);
}
function smoothEaseOut(startTime, endTime, startVal, endVal) {
var x = easeOutQuint(time - startTime, 0, 100, transition);
return linear(x, startTime, endTime, startVal, endVal);
}
it should be
function smoothEaseIn(startTime, endTime, startVal, endVal) {
var x = easeInQuint(time - startTime, 0, 100, transition);
return linear(x, 0, 100, startVal, endVal);
}
function smoothEaseOut(startTime, endTime, startVal, endVal) {
var x = easeOutQuint(time - startTime, 0, 100, transition);
return linear(x, 0, 100, startVal, endVal);
}
Stupid mistake on my part, I can’t believe I missed that!