salve a tutti
vorrei far funzionare con un mc instanziato "MC" sulla mia root questa classe tratta dal codice di Robert Penner:
// cubic easing in/out - acceleration until halfway, then deceleration
Math.easeInOutCubic = function (t, b, c, d) {
if ((t/=d/2) < 1) return c/2*t*t*t + b;
return c/2*((t-=2)*t*t + 2) + b;
};
ma non ho idea di come fare
suggerimenti?
grazie in anticipo

Rispondi quotando