Skip to content

Commit 1a6f250

Browse files
authored
Update README.md
1 parent 1087e39 commit 1a6f250

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,4 +213,17 @@ Todos
213213
// CustomModal, CustomCloseButton
214214
<Provider Modal={CustomModal} CloseButton={CustomClostButton} />
215215
const { Modal, CloseButton } = useProvider()
216+
217+
// customize the modal animations
218+
const { Modal } = useModal({
219+
onOpen({ modal }) {
220+
modal.current.style.cssText = `
221+
/* do some animation in */
222+
`
223+
},
224+
onClose({ modal }) {
225+
modal.current.style.cssText = `
226+
/* do some animation out */
227+
`
228+
}
216229
```

0 commit comments

Comments
 (0)