UNPKG

@empathyco/x-components

Version:
19 lines (16 loc) 832 B
import { createDirectionalAnimationFactory } from '../create-directional-animation-factory.js'; import './animate-translate.style.scss.js'; /** * Returns a transition component to wrap an element passed in the default slot and animating its * translate using transform and with the transform origin passed as parameter. * * @param animationOrigin - The origin of the transform 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 animateTranslate = createDirectionalAnimationFactory('animate-translate'); export { animateTranslate }; //# sourceMappingURL=animate-translate.factory.js.map