"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > Framer Motion | Introduction - Part 1

Framer Motion | Introduction - Part 1

Published on 2024-08-05
Browse:919

Why ?

Framer Motion is a library that allows you to easily animate in React applications. Used to add animation effects such as transitions and drags.

Created by Who?

Created by Framer company. Framer is a company that specifically develops user interface (UI) design and prototyping tools.

How to Install?

Framer supports React 18 and above. To install via npm, run the following command.

npm install framer-motion

Framer motion library does not have any dependencies and you can start applying it with a single package.

Image description

Image description

Framer motion has shown that it has received serious appreciation from its users, with approximately 3.4 million weekly downloads on npm and 22700 stars on Github, as of today (10.07.2024).

Use

In the component you want, you can import the motion object from the framer-motion library and add a motion component to any html or svg element. .

import { motion } from "framer-motion";

export default function App() {
  return ;
}
Release Statement This article is reproduced at: https://dev.to/boraacici/framer-motion-giris-part-1-1a8j?1 If there is any infringement, please contact [email protected] to delete it
Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3