Answers for "styled components framer motion"

0

styled components framer motion

//Easy way
const MyCustomComponent = styled(motion.div)`
  width: 2rem;
  background-color: tomato;
`;


//or

//using as
<MyComponent as={motion.div} animate={{ y: 100 }}/>
Posted by: Guest on March-04-2021

Browse Popular Code Answers by Language