V
V
Vladimir Golub2020-07-06 17:12:04
JavaScript
Vladimir Golub, 2020-07-06 17:12:04

How to convert the easeOutQuint function to a different range of values?

I want to use this ease function, but the values ​​do not change from 0 to 1, but from 0 to 0.5 and 0.5 to 1.
How can I redo the formula at the bottom of the page?

https://easings.net/ru#easeOutQuint

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RAX7, 2020-07-06
@RazerVG

Why remake it. Just normalize the number that is passed to it

// t от 0 до 0.5:
easeOutQuint(t * 2);
// t от 0.5 до 1:
easeOutQuint((t - 0.5) * 2);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question