210 4.74 KB 192
Animate ease types
By SynthbotCreated: 2022-02-16 10:27:15
Updated: 2022-02-17 00:26:19
Expiry: Never
def classicEase(intensity):
delta = (100 - intensity) / 300
return [
Point(0, 0),
Point(1/3, delta),
Point(2/3, 1/3 + delta),
Point(1, 1),
]
customEases = {
"quadIn": [Point(0, 0), Point(0.55, 0.085), Point(0.68, 0.53), Point(1, 1)],
"cubicIn": [Point(0, 0), Point(0.55, 0.055), Point(0.675, 0.19), Point(1, 1)],
"quartIn": [Point(0, 0), Point(0.895, 0.03), Point(0.685, 0.22), Point(1, 1)],
"quintIn": [Point(0, 0), Point(0.755, 0.05), Point(0.855, 0.06), Point(1, 1)],
"sineIn": [Point(0, 0), Point(0.47, 0), Point(0.745, 0.715), Point(1, 1)],
"backIn": [Point(0, 0), Point(0.6, -0.28), Point(0.735, 0.045), Point(1, 1)],
"circIn": [Point(0, 0), Point(0.6, 0.04), Point(0.98, 0.335), Point(1, 1)],
"bounceIn": [
Point(0, 0),
Point(0.05, 0.035),
Point(0.05, 0.035),
Point(0.090909, 0),
Point(0.2, 0.14),
Point(0.2, 0.11),
Point(0.27272728, 0),
Point(0.5, 0.7917),
Point(0.5, 0.375),
Point(0.6363636364, 0),
Point(0.8, 0.8712),
Point(1, 1),
Point(1, 1),
],
"elasticIn": [
Point(0, 0),
Point(0.63, 0),
Point(0, 0),
Point(0.63, 0),
Point(0.865, 0.25),
Point(0.865, 0.25),
Point(0.925, 0),
Point(0.865, -0.5),
Point(1, 0),
Point(1, 1),
],
"quadOut": [
Point(0, 0),
Point(0.25, 0.46),
Point(0.45, 0.94),
Point(1, 1),
],
"cubicOut": [Point(0, 0), Point(0.215, 0.61), Point(0.355, 1), Point(1, 1)],
"quartOut": [
Point(0, 0),
Point(0.165, 0.84),
Point(0.44, 1),
Point(1, 1),
],
"quintOut": [
Point(0, 0),
Point(0.23, 1),
Point(0.32, 1),
Point(1, 1),
],
"sineOut": [
Point(0, 0),
Point(0.39, 0.575),
Point(0.565, 1),
Point(1, 1),
],
"backOut": [
Point(0, 0),
Point(0.175, 0.885),
Point(0.32, 1.275),
Point(1, 1),
],
"circOut": [
Point(0, 0),
Point(0.075, 0.82),
Point(0.165, 1),
Point(1, 1),
],
"bounceOut": [
Point(0, 0),
Point(0, 0),
Point(0.2, 0.1288),
Point(0.3636363636, 1),
Point(0.5, 0.625),
Point(0.5, 0.2083),
Point(0.72727272, 1),
Point(0.8, 0.89),
Point(0.8, 0.86),
Point(0.90909, 1),
Point(0.95, 0.965),
Point(0.95, 0.965),
Point(1, 1),
],
"elasticOut": [
Point(0, 0),
Point(0, 1),
Point(0.145, 1.6),
Point(0.225, 1),
Point(0.26, 0.8),
Point(0.26, 0.8),
Point(0.38, 1),
Point(1, 1),
Point(0.38, 1),
Point(1, 1),
],
"quadInOut": [
Point(0, 0),
Point(0.455, 0.03),
Point(0.515, 0.955),
Point(1, 1),
],
"cubicInOut": [
Point(0, 0),
Point(0.645, 0.045),
Point(0.355, 1),
Point(1, 1),
],
"quartInOut": [
Point(0, 0),
Point(0.77),
Point(0.175, 1),
Point(1, 1),
],
"quintInOut": [
Point(0, 0),
Point(0.86),
Point(0.07, 1),
Point(1, 1),
],
"sineInOut": [
Point(0, 0),
Point(0.445, 0.05),
Point(0.55, 0.95),
Point(1, 1),
],
"backInOut": [
Point(0, 0),
Point(0.68, -0.55),
Point(0.265, 1.55),
Point(1, 1),
],
"circInOut": [
Point(0, 0),
Point(0.785, 0.135),
Point(0.15, 0.86),
Point(1, 1),
],
"bounceInOut": [
Point(0, 0),
Point(0.025, 0.0175),
Point(0.025, 0.0175),
Point(0.0454545),
Point(0.1, 0.07),
Point(0.1, 0.055),
Point(0.1363636),
Point(0.25, 0.39585),
Point(0.25, 0.1845),
Point(0.3181818),
Point(0.4, 0.4356),
Point(0.5, 0.5),
Point(0.5, 0.5),
Point(0.5, 0.5),
Point(0.6, 0.5644),
Point(0.6818181818, 1),
Point(0.75, 0.8125),
Point(0.75, 0.60415),
Point(0.86363636, 1),
Point(0.9, 0.945),
Point(0.9, 0.93),
Point(0.954545, 1),
Point(0.975, 0.9825),
Point(0.975, 0.9825),
Point(1, 1),
],
"elasticInOut": [
Point(0, 0),
Point(0.33),
Point(0, 0),
Point(0.33),
Point(0.4, -0.25),
Point(0.6, 1.25),
Point(0.67, 1),
Point(1, 1),
Point(0.67, 1),
Point(1, 1),
],
}
by Synthbot
by Synthbot
by Synthbot
by Synthbot
by Synthbot