You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
251 B
12 lines
251 B
1 year ago
|
export function expIn(t) {
|
||
|
return Math.pow(2, 10 * t - 10);
|
||
|
}
|
||
|
|
||
|
export function expOut(t) {
|
||
|
return 1 - Math.pow(2, -10 * t);
|
||
|
}
|
||
|
|
||
|
export function expInOut(t) {
|
||
|
return ((t *= 2) <= 1 ? Math.pow(2, 10 * t - 10) : 2 - Math.pow(2, 10 - 10 * t)) / 2;
|
||
|
}
|