function SlideFadeTransitionExample() {
const { isOpen, onOpen, onClose } = useDisclosure()
return (
<>
<Button onClick={onOpen}>Open Modal</Button>
<Modal isOpen={isOpen} onClose={onClose}>
<ModalOverlay>
<SlideFade initialOffset="20px" timeout={150} in={isOpen}>
{(styles) => (
<ModalContent style={styles}>
<ModalHeader>Modal Title</ModalHeader>
<ModalCloseButton />
<ModalBody>
<Lorem count={2} />
</ModalBody>
<ModalFooter>
<Button colorScheme="blue" mr={3} onClick={onClose}>
Close
</Button>
</ModalFooter>
</ModalContent>
)}
</SlideFade>
</ModalOverlay>
</Modal>
</>
)
}