diff --git a/src/components/Container.tsx b/src/components/Container.tsx index 752a28e..9c85dbe 100644 --- a/src/components/Container.tsx +++ b/src/components/Container.tsx @@ -41,7 +41,9 @@ const Container: React.FC<{ !child || typeof child === "string" ? child : React.cloneElement(child, { + ...child.props, style: { + ...child.props.style, opacity: 0, transform: "translateY(3rem)", transition: "all 300ms", diff --git a/src/components/FlickerList.tsx b/src/components/FlickerList.tsx index 326b6a2..bc8ee84 100644 --- a/src/components/FlickerList.tsx +++ b/src/components/FlickerList.tsx @@ -23,9 +23,11 @@ const Flicker: React.FC<{ children: React.ReactNode; index: number; description: string; -}> = ({ children, index, description }) => { + style?: React.CSSProperties; +}> = ({ children, index, description, style }) => { return ( = ({ list }) => { + style?: React.CSSProperties; +}> = ({ list, style }) => { return (