The Fold effect is similar to the Squish effect except that the scaling is performed serially, first in the vertical direction, then horizontally, giving the illusion that the element is being folded up, then over.
You can use one of the following two forms to use this effect −
new Effect.Fold('id_of_element', [options]); OR new Effect.Fold(element, [options]);
This effect does not have any other parameter except the common parameters.
This will produce following result −