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.
|
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; |
|
}
|
|
|