Returns : *
Returns whatever the functions provided return.
pipe()
is a method to help make passing values from function to function easier. Instead of having to manually chain animations and pass one's return value to the next's parameter, pipe()
can do it for you. For example:
var value1 = func1(input);
var value2 = func2(value1);
var output = func3(value2);
var transfrom = gsap.utils.pipe(func1, func2, func3);
var output = transform(input);