Framer Motion
Here you will find the information on how we used animations from this library.
Last updated
Here you will find the information on how we used animations from this library.
Last updated
All the base examples of the animations and overall how this work you can find on their official documentation .
In this block we just briefly take a look how this animation set in our project.
First of all we need to install package:
In file we import:
N.B. AnimatePresence not always necessary.
Base usage on example in Lead Statuses Settings:
or more complicated example just lower in the code:
From this example we can understand that render switches on display based on different conditions. Animation make experience of UI usage more smooth.
You may notice this thing in component code:
Such code you can find in .../ui/src/common/animationVariants/
As you can see, in that folder we stores other animation variants.
Just go there and try it!