UNPKG

@avent-ui/page-transition

Version:
14 lines (11 loc) 964 B
import React__default from 'react'; import { motion } from './node_modules/framer-motion/dist/es/render/components/motion/proxy.js'; var SimpleTransition = function (_a) { var children = _a.children; return (React__default.createElement(React__default.Fragment, null, children, React__default.createElement(motion.div, { className: 'slide-in fixed top-0 left-0 w-screen h-screen bg-black z-50', style: { transformOrigin: 'bottom' }, initial: { scaleY: 0 }, animate: { scaleY: 0 }, exit: { scaleY: 1 }, transition: { duration: 1, ease: [0.22, 1, 0.36, 1] } }), React__default.createElement(motion.div, { className: 'slide-out fixed top-0 left-0 w-screen h-screen bg-black z-50', style: { transformOrigin: 'top' }, initial: { scaleY: 1 }, animate: { scaleY: 0 }, exit: { scaleY: 0 }, transition: { duration: 1, ease: [0.22, 1, 0.36, 1] } }))); }; export { SimpleTransition as default }; //# sourceMappingURL=SimpleTransition.js.map