forked from phc/orario
26 lines
617 B
React
26 lines
617 B
React
// import { createContext } from 'preact'
|
|
// import { toChildArray } from 'preact'
|
|
// import { useContext, useState } from 'preact/hooks'
|
|
|
|
// const AnimationContext = createContext()
|
|
|
|
// export const useAnimation = animation => {
|
|
// const [styles, setStyles] = useState({})
|
|
|
|
// const start = () => {
|
|
// setStyles({ animation })
|
|
// }
|
|
|
|
// return [
|
|
// start,
|
|
// {
|
|
// styles,
|
|
// onAnimationEnd: e => {
|
|
// console.log('animation end')
|
|
// },
|
|
// },
|
|
// ]
|
|
// }
|
|
|
|
// export const Animation = ({ animation, children }) => {}
|