npm i framer motion code example Example: intall motion api with npm => npm install framer-motion with yarn => yarn add framer-motion