(direction, type, delay, duration)
| 17 | }; |
| 18 | |
| 19 | export const fadeIn = (direction, type, delay, duration) => { |
| 20 | return { |
| 21 | hidden: { |
| 22 | x: direction === "left" ? 100 : direction === "right" ? -100 : 0, |
| 23 | y: direction === "up" ? 100 : direction === "down" ? -100 : 0, |
| 24 | opacity: 0, |
| 25 | }, |
| 26 | show: { |
| 27 | x: 0, |
| 28 | y: 0, |
| 29 | opacity: 1, |
| 30 | transition: { |
| 31 | type: type, |
| 32 | delay: delay, |
| 33 | duration: duration, |
| 34 | ease: "easeOut", |
| 35 | }, |
| 36 | }, |
| 37 | }; |
| 38 | }; |
| 39 | |
| 40 | export const zoomIn = (delay, duration) => { |
| 41 | return { |
no outgoing calls
no test coverage detected