import React from "react"; import styled from "@emotion/styled"; import { keyframes } from "@emotion/core"; interface CSSFadeInProps { as?: string; } const CSSFadeIn: React.FC = ({ as, children }) => { return {children}; }; export default CSSFadeIn; const fadein = keyframes` from { opacity: 0; } to { opacity: 1; } `; const Transition = styled.div` opacity: 0; animation: ${fadein} 0.3s linear forwards; `;