@empathyco/x-components
Version:
Empathy X Components
19 lines (16 loc) • 806 B
JavaScript
import { createDirectionalAnimationFactory } from '../create-directional-animation-factory.js';
import './animate-clip-path.style.scss.js';
/**
* Returns a transition component to wrap an element passed in the default slot and animating its
* clip-path using inset and with the origin passed as parameter.
*
* @param animationOrigin - The origin of the animation. This means where the animation starts and
* ends. For example 'left' makes the element animate from the left and back; 'left-to-right' makes
* it animate from left to right. If not provided the default value is 'top'.
* @returns A Transition Component.
*
* @public
*/
const animateClipPath = createDirectionalAnimationFactory('animate-clip-path');
export { animateClipPath };
//# sourceMappingURL=animate-clip-path.factory.js.map